Bug 597144 - "Set viewport width and height if both are specified in meta tag" [r=mark.finkle]

This commit is contained in:
Matt Brubeck 2010-09-16 12:30:00 -04:00
parent 78b41b61ad
commit f7f56c1ae1
2 changed files with 2 additions and 2 deletions

View File

@ -2389,7 +2389,7 @@ Tab.prototype = {
viewportH = viewportW * (screenH / screenW);
} else if (!validW && validH) {
viewportW = viewportH * (screenW / screenH);
} else {
} else if (!validW && !validH) {
viewportW = kDefaultBrowserWidth;
viewportH = kDefaultBrowserWidth * (screenH / screenW);
}

View File

@ -1,7 +1,7 @@
<html>
<head>
<title>Browser Viewport Page 04</title>
<meta name="viewport" content="width=200"/>
<meta name="viewport" content="width=200,height=500"/>
<!--
Expected width calculation: