Skip to content

Commit 2f91184

Browse files
committed
Merge pull request #97132 from WhalesState/tab-container-minimum-size
Fix `TabContainer` minimum size
2 parents 0f27e78 + 2ff61e0 commit 2f91184

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)