mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 840593 - Viewport min-width should default to zero. r=mbrubeck
This commit is contained in:
parent
4481466939
commit
dd8396c8fb
@ -5060,8 +5060,8 @@ var ViewportHandler = {
|
||||
|
||||
let widthStr = windowUtils.getDocumentMetadata("viewport-width");
|
||||
let heightStr = windowUtils.getDocumentMetadata("viewport-height");
|
||||
let width = this.clamp(parseInt(widthStr), kViewportMinWidth, kViewportMaxWidth);
|
||||
let height = this.clamp(parseInt(heightStr), kViewportMinHeight, kViewportMaxHeight);
|
||||
let width = this.clamp(parseInt(widthStr), kViewportMinWidth, kViewportMaxWidth) || 0;
|
||||
let height = this.clamp(parseInt(heightStr), kViewportMinHeight, kViewportMaxHeight) || 0;
|
||||
|
||||
// Allow zoom unless explicity disabled or minScale and maxScale are equal.
|
||||
// WebKit allows 0, "no", or "false" for viewport-user-scalable.
|
||||
|
Loading…
Reference in New Issue
Block a user