Fix tab wrapping with vertical tab layout (#4152)

This commit is contained in:
Daniel Sage
2022-11-15 02:45:10 -05:00
committed by GitHub
parent 8031f33b53
commit 90121ed756
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -617,7 +617,7 @@ void Notebook::performLayout(bool animated)
// zneix: if we were to remove buttons when tabs are hidden
// stuff below to "set page bounds" part should be in conditional statement
int tabsPerColumn = (this->height() - top) / tabHeight;
int tabsPerColumn = (this->height() - top) / (tabHeight + tabSpacer);
if (tabsPerColumn == 0) // window hasn't properly rendered yet
{
return;
@@ -719,7 +719,7 @@ void Notebook::performLayout(bool animated)
// zneix: if we were to remove buttons when tabs are hidden
// stuff below to "set page bounds" part should be in conditional statement
int tabsPerColumn = (this->height() - top) / tabHeight;
int tabsPerColumn = (this->height() - top) / (tabHeight + tabSpacer);
if (tabsPerColumn == 0) // window hasn't properly rendered yet
{
return;