Skip to content

Commit 2ff61e0

Browse files
committed
Fix TabContainer minimum size
1 parent 922ae7e commit 2ff61e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scene/gui/tab_container.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ Size2 TabContainer::get_minimum_size() const {
909909
for (int i = 0; i < controls.size(); i++) {
910910
Control *c = controls[i];
911911

912-
if (!c->is_visible_in_tree() && !use_hidden_tabs_for_min_size) {
912+
if (!c->is_visible() && !use_hidden_tabs_for_min_size) {
913913
continue;
914914
}
915915

0 commit comments

Comments
 (0)