Fix tab wrapping with vertical tab layout (#4152)
This commit is contained in:
+1
-1
@@ -82,7 +82,7 @@
|
||||
- Minor: Improved text selection to match Windows native behaviour. (#4127)
|
||||
- Minor: Add settings tooltips. (#3437)
|
||||
- Minor: Add setting to limit message input length. (#3418)
|
||||
- Minor: Improved look of tabs when using a layout other than top. (#3925)
|
||||
- Minor: Improved look of tabs when using a layout other than top. (#3925, #4152)
|
||||
- Bugfix: Fixed `Add new account` dialog causing main chatterino window to be non movable. (#4121)
|
||||
- Bugfix: Connection to Twitch PubSub now recovers more reliably. (#3643, #3716)
|
||||
- Bugfix: Fixed `Smooth scrolling on new messages` setting sometimes hiding messages. (#4028)
|
||||
|
||||
@@ -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