ソースを参照

Merge pull request #48529 from besh81/master

Fixed bug in tab_container with hidden tabs
Rémi Verschelde 4 年 前
コミット
af82dddb8c
1 ファイル変更1 行追加0 行削除
  1. 1 0
      scene/gui/tab_container.cpp

+ 1 - 0
scene/gui/tab_container.cpp

@@ -394,6 +394,7 @@ void TabContainer::_notification(int p_what) {
 			Vector<int> tab_widths;
 			Vector<int> tab_widths;
 			for (int i = first_tab_cache; i < tabs.size(); i++) {
 			for (int i = first_tab_cache; i < tabs.size(); i++) {
 				if (get_tab_hidden(i)) {
 				if (get_tab_hidden(i)) {
+					tab_widths.push_back(0);
 					continue;
 					continue;
 				}
 				}
 				int tab_width = _get_tab_width(i);
 				int tab_width = _get_tab_width(i);