How to make Electron WebView fill specified size?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I've tried adding an Electron WebView to a basic app and set minwidth and minheight on it as shown below. When it loads though it always ends up as 784px X 150px <webview id = "webpage" src = "https://www.duckduckgo.com/" autosize = "on" minwidth = "800px" minheight = "1200px" ></webview> 回答1: This is an issue other people have reported too, here in atom discussion page under "Webview autosize" title : https://discuss.atom.io/t/webview-autosize/16915/6 It seems that 'autosize' doesn't say the last word about the resulting window