From 5550e49ecb03fecab8de7462ee64cca12dd1c3cb Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Wed, 2 May 2012 03:38:39 +0900 Subject: [PATCH] Layout pinned tabs correctly even if the tab bar is narrower than the size of a pinned tab (#269) --- modules/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/browser.js b/modules/browser.js index c7746c77..7beeec5d 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -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;