Skip to content

Commit

Permalink
Merge pull request #34234 from KoBeWi/apparently
Browse files Browse the repository at this point in the history
Update minimum size of SpinBox on theme change
  • Loading branch information
akien-mga authored Dec 10, 2019
2 parents 269145a + 6e1dc7b commit 16fc023
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scene/gui/spin_box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

Expand Down

0 comments on commit 16fc023

Please sign in to comment.