diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-05-07 14:39:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-07 14:39:28 +0200 |
commit | af82dddb8cfb98a4c4656a1bd0be4f837e0b2cd9 (patch) | |
tree | 002cb403c35c9a8ad7ce1248d6cc4277214c4bc0 | |
parent | a26efeea4faa3ceefd505217917dc12ebf5f8827 (diff) | |
parent | e7e7aa7d1205038770ffe677422978d183a6a19f (diff) |
Merge pull request #48529 from besh81/master
Fixed bug in tab_container with hidden tabs
-rw-r--r-- | scene/gui/tab_container.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/tab_container.cpp b/scene/gui/tab_container.cpp index ff9dafa0f9..acf0641005 100644 --- a/scene/gui/tab_container.cpp +++ b/scene/gui/tab_container.cpp @@ -394,6 +394,7 @@ void TabContainer::_notification(int p_what) { Vector<int> 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); |