Merge pull request #6128 from gerhardberger/webview-size-issue
Fixes transformed webview size
This commit is contained in:
commit
b4232d9230
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue