+ tweak to how we deal with laying out small numbers of tabs in a group

This commit is contained in:
Ian Gilman 2010-06-15 13:48:37 -07:00
parent 5d85d8d4ce
commit b84ebd26bb

View File

@ -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;
}