mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Fix ProgressBar's minimum size not updating when toggling its percent_visible
This commit is contained in:
@@ -126,7 +126,11 @@ int ProgressBar::get_fill_mode() {
|
||||
}
|
||||
|
||||
void ProgressBar::set_percent_visible(bool p_visible) {
|
||||
if (percent_visible == p_visible) {
|
||||
return;
|
||||
}
|
||||
percent_visible = p_visible;
|
||||
update_minimum_size();
|
||||
update();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user