summaryrefslogtreecommitdiffstats
path: root/scene/gui
diff options
context:
space:
mode:
authorMounir Tohami <53877170+WhalesState@users.noreply.github.com>2024-10-07 15:21:24 +0000
committerMounir Tohami <53877170+WhalesState@users.noreply.github.com>2024-10-07 15:21:24 +0000
commit3db9bdf8d872d5343ad51066c2a5780530f968ed (patch)
tree2859e38057e2906174f81c96082d206b5230c1b1 /scene/gui
parentdb66bd35af704fe0d83ba9348b8c50a48e51b2ba (diff)
downloadredot-engine-3db9bdf8d872d5343ad51066c2a5780530f968ed.tar.gz
Fix `Button` minimum size when `disabled` is toggled.
Diffstat (limited to 'scene/gui')
-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 {