diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-12-10 07:41:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-10 07:41:00 +0100 |
commit | 16fc023d4487c2a3f26b5bdd3827628de2cd0ba2 (patch) | |
tree | 9ff744618a1b87d10389a2d40e5e56ef30dd4fe8 /scene/gui | |
parent | 269145a346bddae5cbbf00fd17b6c8eac4cd4665 (diff) | |
parent | 6e1dc7b2fec148bf4ba96d1fcd19cc2812345a3a (diff) |
Merge pull request #34234 from KoBeWi/apparently
Update minimum size of SpinBox on theme change
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/spin_box.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/spin_box.cpp b/scene/gui/spin_box.cpp index bf067898e6..de25d6a63d 100644 --- a/scene/gui/spin_box.cpp +++ b/scene/gui/spin_box.cpp @@ -211,6 +211,10 @@ void SpinBox::_notification(int p_what) { _adjust_width_for_icon(get_icon("updown")); _value_changed(0); + } else if (p_what == NOTIFICATION_THEME_CHANGED) { + + call_deferred("minimum_size_changed"); + get_line_edit()->call_deferred("minimum_size_changed"); } } |