Bug 594002 - Use the tab's outer width when calculating the number of visible tabs for session restore prioritization. r=zpao, a=betaN

This commit is contained in:
Markus Stange
2010-11-24 10:52:42 +01:00
parent 3590277471
commit d033ed091c

View File

@@ -2443,7 +2443,7 @@ SessionStoreService.prototype = {
// Determine if we can optimize & load visible tabs first
let maxVisibleTabs = Math.ceil(tabbrowser.tabContainer.mTabstrip.scrollClientSize /
aTabs[unhiddenTabs - 1].clientWidth);
aTabs[unhiddenTabs - 1].getBoundingClientRect().width);
// make sure we restore visible tabs first, if there are enough
if (maxVisibleTabs < unhiddenTabs && aSelectTab > 1) {