summaryrefslogtreecommitdiffstats
path: root/scene
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-11-11 14:18:36 -0600
committerThaddeus Crews <repiteo@outlook.com>2024-11-11 14:18:36 -0600
commit16cd7b4a7e4ced35ffb0ad43fedca1beba402235 (patch)
tree73ca6b6b81b4de13c80fd8abfa31144e26f06575 /scene
parente9648116822b44a36fecaff159c3b6995575055f (diff)
parent3db9bdf8d872d5343ad51066c2a5780530f968ed (diff)
downloadredot-engine-16cd7b4a7e4ced35ffb0ad43fedca1beba402235.tar.gz
Merge pull request #97897 from WhalesState/button-min-size
Fix `Button` minimum size when `disabled` is toggled.
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/base_button.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/base_button.cpp b/scene/gui/base_button.cpp
index 34f5095493..bd4770bcc3 100644
--- a/scene/gui/base_button.cpp
+++ b/scene/gui/base_button.cpp
@@ -205,6 +205,7 @@ void BaseButton::set_disabled(bool p_disabled) {
status.pressing_inside = false;
}
queue_redraw();
+ update_minimum_size();
}
bool BaseButton::is_disabled() const {