diff --git a/scene/gui/tab_container.cpp b/scene/gui/tab_container.cpp index ff9dafa0f9c..acf0641005b 100644 --- a/scene/gui/tab_container.cpp +++ b/scene/gui/tab_container.cpp @@ -394,6 +394,7 @@ void TabContainer::_notification(int p_what) { Vector tab_widths; for (int i = first_tab_cache; i < tabs.size(); i++) { if (get_tab_hidden(i)) { + tab_widths.push_back(0); continue; } int tab_width = _get_tab_width(i);