fix: do not bubble up resize event from webview (#14271)

This commit is contained in:
Cheng Zhao
2018-08-23 15:42:35 +09:00
committed by GitHub
parent cd8bb1d3b4
commit 6736d4ef29

View File

@@ -131,7 +131,7 @@ class WebViewImpl {
}
onElementResize () {
const resizeEvent = new Event('resize', { bubbles: true })
const resizeEvent = new Event('resize')
resizeEvent.newWidth = this.webviewNode.clientWidth
resizeEvent.newHeight = this.webviewNode.clientHeight
this.dispatchEvent(resizeEvent)