]> khamidou — GitHub mirrors - electron.git/commitdiff
adds display:inline-block to style tag
authorSam Eaton <sameaton11@gmail.com>
Wed, 10 Jun 2015 03:51:10 +0000 (21:51 -0600)
committerSam Eaton <sameaton11@gmail.com>
Wed, 10 Jun 2015 03:51:10 +0000 (21:51 -0600)
The example attempts to change the height of an inline element (webview), which has no effect.
The height will now take effect.

docs/api/web-view-tag.md

index 705014cf6a18b37381d1be21cfb3262af61aa2bd..842e3428e0a4d5ad8f34d5aafe4d1b14072d6c34 100644 (file)
@@ -18,7 +18,7 @@ form, the `webview` tag includes the `src` of the web page and css styles that
 control the appearance of the `webview` container:
 
 ```html
-<webview id="foo" src="https://www.github.com/" style="width:640px; height:480px"></webview>
+<webview id="foo" src="https://www.github.com/" style="display:inline-block; width:640px; height:480px"></webview>
 ```
 
 If you want to control the guest content in any way, you can write JavaScript