mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +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();
|
figure();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(rows == 1) {
|
if(rows == 1 && columns == 1) {
|
||||||
tabWidth = Math.min(Math.min(TabItems.tabWidth, bounds.width / count), bounds.height / tabAspect);
|
var maxWidth = Math.max(TabItems.tabWidth, bounds.width / 2);
|
||||||
|
tabWidth = Math.min(Math.min(maxWidth, bounds.width / count), bounds.height / tabAspect);
|
||||||
tabHeight = tabWidth * tabAspect;
|
tabHeight = tabWidth * tabAspect;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user