Fix tab wrapping with vertical tab layout (#4152)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user