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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)