Layout pinned tabs correctly even if the tab bar is narrower than the size of a pinned tab (#269)

This commit is contained in:
Piro / SHIMODA Hiroshi 2012-05-02 03:38:39 +09:00
parent 5bec33ba6f
commit 5550e49ecb

View File

@ -421,7 +421,7 @@ TreeStyleTabBrowser.prototype = {
var width = faviconized ? faviconizedSize : maxWidth ;
var height = faviconizedSize;
var maxCol = Math.floor(maxWidth / width);
var maxCol = Math.max(1, Math.floor(maxWidth / width));
var maxRow = Math.ceil(count / maxCol);
var col = 0;
var row = 0;