summaryrefslogtreecommitdiffstats
path: root/scene/gui/button.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/gui/button.cpp')
-rw-r--r--scene/gui/button.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/button.cpp b/scene/gui/button.cpp
index 46ac8187c4..e34384dd6c 100644
--- a/scene/gui/button.cpp
+++ b/scene/gui/button.cpp
@@ -46,6 +46,9 @@ void Button::_set_internal_margin(Side p_side, float p_value) {
_internal_margin[p_side] = p_value;
}
+void Button::_queue_update_size_cache() {
+}
+
void Button::_update_theme_item_cache() {
BaseButton::_update_theme_item_cache();
@@ -544,6 +547,7 @@ Ref<Texture2D> Button::get_icon() const {
void Button::set_expand_icon(bool p_enabled) {
if (expand_icon != p_enabled) {
expand_icon = p_enabled;
+ _queue_update_size_cache();
queue_redraw();
update_minimum_size();
}