Skip to content

Commit 16fc023

Browse files
authored
Merge pull request #34234 from KoBeWi/apparently
Update minimum size of SpinBox on theme change
2 parents 269145a + 6e1dc7b commit 16fc023

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)