mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
+ tweak to how we deal with laying out small numbers of tabs in a group
This commit is contained in:
parent
5d85d8d4ce
commit
b84ebd26bb
@ -472,8 +472,9 @@ window.Items = {
|
||||
figure();
|
||||
}
|
||||
|
||||
if(rows == 1) {
|
||||
tabWidth = Math.min(Math.min(TabItems.tabWidth, bounds.width / count), bounds.height / tabAspect);
|
||||
if(rows == 1 && columns == 1) {
|
||||
var maxWidth = Math.max(TabItems.tabWidth, bounds.width / 2);
|
||||
tabWidth = Math.min(Math.min(maxWidth, bounds.width / count), bounds.height / tabAspect);
|
||||
tabHeight = tabWidth * tabAspect;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user