From 6e1dc7b2fec148bf4ba96d1fcd19cc2812345a3a Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Tue, 10 Dec 2019 02:11:22 +0100 Subject: [PATCH] Update minimum size of SpinBox on theme change --- scene/gui/spin_box.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scene/gui/spin_box.cpp b/scene/gui/spin_box.cpp index bf067898e65..de25d6a63d0 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"); } }