Browse Source

Fix `Button` minimum size when `disabled` is toggled.

Mounir Tohami 11 tháng trước cách đây
mục cha
commit
3db9bdf8d8
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      scene/gui/base_button.cpp

+ 1 - 0
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 {