|
@@ -166,6 +166,12 @@ var WebViewImpl = (function () {
|
|
|
resizeEvent = new Event('resize', {
|
|
|
bubbles: true
|
|
|
})
|
|
|
+
|
|
|
+ // Using client size values, because when a webview is transformed `newSize`
|
|
|
+ // is incorrect
|
|
|
+ newSize.width = this.webviewNode.clientWidth
|
|
|
+ newSize.height = this.webviewNode.clientHeight
|
|
|
+
|
|
|
resizeEvent.newWidth = newSize.width
|
|
|
resizeEvent.newHeight = newSize.height
|
|
|
this.dispatchEvent(resizeEvent)
|