add width to webview iframe (#15204)

This commit is contained in:
trop[bot] 2018-10-17 11:54:43 +09:00 committed by Cheng Zhao
parent 6f54d58e2a
commit 12f75832b8

View file

@ -62,6 +62,7 @@ class WebViewImpl {
createInternalElement () { createInternalElement () {
const iframeElement = document.createElement('iframe') const iframeElement = document.createElement('iframe')
iframeElement.style.flex = '1 1 auto' iframeElement.style.flex = '1 1 auto'
iframeElement.style.width = '100%'
iframeElement.style.border = '0' iframeElement.style.border = '0'
v8Util.setHiddenValue(iframeElement, 'internal', this) v8Util.setHiddenValue(iframeElement, 'internal', this)
return iframeElement return iframeElement