summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-05-07 14:39:28 +0200
committerGitHub <noreply@github.com>2021-05-07 14:39:28 +0200
commitaf82dddb8cfb98a4c4656a1bd0be4f837e0b2cd9 (patch)
tree002cb403c35c9a8ad7ce1248d6cc4277214c4bc0
parenta26efeea4faa3ceefd505217917dc12ebf5f8827 (diff)
parente7e7aa7d1205038770ffe677422978d183a6a19f (diff)
Merge pull request #48529 from besh81/master
Fixed bug in tab_container with hidden tabs
-rw-r--r--scene/gui/tab_container.cpp1
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);