Bug 614353: Make sure the viewport spans the full window height when zoomed out [r=mfinkle]

--HG--
extra : rebase_source : b32495138422780ea21053408d95e9ec1f661db2
This commit is contained in:
Matt Brubeck 2011-01-18 11:27:02 -08:00
Родитель 62e7a9fc2c
Коммит 936d77bc16
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -2487,6 +2487,10 @@ Tab.prototype = {
} else if (!validW && !validH) {
viewportW = this.useFallbackWidth ? kFallbackBrowserWidth : kDefaultBrowserWidth;
viewportH = kDefaultBrowserWidth * (screenH / screenW);
// Make sure the viewport height is not shorter than the window when
// the page is zoomed out to show its full width.
viewportH = Math.max(viewportH, screenH * (browser.contentDocumentWidth / screenW));
}
}