зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
62e7a9fc2c
Коммит
936d77bc16
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче