mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[mobile2] Set browser.xml viewport properties in setCssViewportSize.
--HG-- extra : rebase_source : 83cc69ceac9caea7f6f0d525ecf570bdb4cb3fb3
This commit is contained in:
parent
89912269ab
commit
e1fc47029e
@ -405,8 +405,6 @@ let ContentScroll = {
|
||||
sendAsyncMessage("MozScrolledAreaChanged", {
|
||||
width: width,
|
||||
height: height,
|
||||
viewportWidth: content.innerWidth,
|
||||
viewportHeight: content.innerHeight
|
||||
});
|
||||
|
||||
break;
|
||||
|
@ -159,8 +159,6 @@
|
||||
case "MozScrolledAreaChanged":
|
||||
this._widthInCSSPx = aMessage.json.width;
|
||||
this._heightInCSSPx = aMessage.json.height;
|
||||
this._viewportWidthInCSSPx = aMessage.json.viewportWidth;
|
||||
this._viewportHeightInCSSPx = aMessage.json.viewportHeight;
|
||||
this._updateCacheViewport();
|
||||
break;
|
||||
}
|
||||
@ -488,6 +486,8 @@
|
||||
<parameter name="height"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
this._viewportWidthInCSSPx = width;
|
||||
this._viewportHeightInCSSPx = height;
|
||||
this.messageManager.sendAsyncMessage("Content:SetCssViewportSize", {
|
||||
width: width,
|
||||
height: height
|
||||
|
Loading…
Reference in New Issue
Block a user