diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-12-06 18:28:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-06 18:28:46 +0100 |
commit | 75ac048e4bc672b9dedf434d71465e6c2703eaec (patch) | |
tree | 1c21fb4dd562d9c58c420bd5fecf74c73cf5a611 /scene/gui/button.cpp | |
parent | 586c1997896fcdbb1c92d488425d7f4b4659b76d (diff) | |
parent | ea7cc1dea93e0003182be2941d10124043c30edf (diff) | |
download | redot-engine-75ac048e4bc672b9dedf434d71465e6c2703eaec.tar.gz |
Merge pull request #55662 from KoBeWi/update_minimum_size_changed_to_update_minimum_size
Diffstat (limited to 'scene/gui/button.cpp')
-rw-r--r-- | scene/gui/button.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/scene/gui/button.cpp b/scene/gui/button.cpp index 9818c8f0cc..2932707401 100644 --- a/scene/gui/button.cpp +++ b/scene/gui/button.cpp @@ -82,13 +82,13 @@ void Button::_notification(int p_what) { xl_text = atr(text); _shape(); - minimum_size_changed(); + update_minimum_size(); update(); } break; case NOTIFICATION_THEME_CHANGED: { _shape(); - minimum_size_changed(); + update_minimum_size(); update(); } break; case NOTIFICATION_DRAW: { @@ -368,7 +368,7 @@ void Button::set_text(const String &p_text) { _shape(); update(); - minimum_size_changed(); + update_minimum_size(); } } @@ -428,7 +428,7 @@ void Button::set_icon(const Ref<Texture2D> &p_icon) { if (icon != p_icon) { icon = p_icon; update(); - minimum_size_changed(); + update_minimum_size(); } } @@ -440,7 +440,7 @@ void Button::set_expand_icon(bool p_enabled) { if (expand_icon != p_enabled) { expand_icon = p_enabled; update(); - minimum_size_changed(); + update_minimum_size(); } } @@ -463,7 +463,7 @@ void Button::set_clip_text(bool p_enabled) { if (clip_text != p_enabled) { clip_text = p_enabled; update(); - minimum_size_changed(); + update_minimum_size(); } } @@ -484,7 +484,7 @@ Button::TextAlign Button::get_text_align() const { void Button::set_icon_align(TextAlign p_align) { icon_align = p_align; - minimum_size_changed(); + update_minimum_size(); update(); } |