Skip to content

Commit 6e1dc7b

Browse files
committed
Update minimum size of SpinBox on theme change
1 parent 269145a commit 6e1dc7b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

scene/gui/spin_box.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@ void SpinBox::_notification(int p_what) {
211211

212212
_adjust_width_for_icon(get_icon("updown"));
213213
_value_changed(0);
214+
} else if (p_what == NOTIFICATION_THEME_CHANGED) {
215+
216+
call_deferred("minimum_size_changed");
217+
get_line_edit()->call_deferred("minimum_size_changed");
214218
}
215219
}
216220

0 commit comments

Comments
 (0)