fixes transformed webview size

This commit is contained in:
gellert 2016-06-19 00:41:42 +02:00
parent 52350b5e35
commit 3d010a8988

View file

@ -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)