Fixed bug in tab_container with hidden tabs
Fix a bug that occour when there are hidden tabs in tab_container. The visualization isn't correct due to missing values in tab_widths array.
This commit is contained in:
parent
bcbd480c32
commit
e7e7aa7d12
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue