mirror of
https://github.com/godotengine/godot.git
synced 2025-02-18 00:30:43 +00:00
Merge pull request #97897 from WhalesState/button-min-size
Fix `Button` minimum size when `disabled` is toggled.
This commit is contained in:
commit
16cd7b4a7e
@ -205,6 +205,7 @@ void BaseButton::set_disabled(bool p_disabled) {
|
|||||||
status.pressing_inside = false;
|
status.pressing_inside = false;
|
||||||
}
|
}
|
||||||
queue_redraw();
|
queue_redraw();
|
||||||
|
update_minimum_size();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool BaseButton::is_disabled() const {
|
bool BaseButton::is_disabled() const {
|
||||||
|
Loading…
Reference in New Issue
Block a user