Why webview tag not fill window layout?

28 views
Skip to first unread message

Арбузов Александр Николаевич

unread,
Jan 21, 2021, 2:54:09 AM1/21/21
to nw.js

NWJS Version :0.50.3
Operating System :Windows 10

I use tag <webview>with Google to source. It rendered, but webtag get not all layout.

My index.html code:

<!DOCTYPE html>
<html>

<head>
<title>Hello World!</title>
<style>
#foo {
height: 100%;
width: 100%;
margin: 0;
}
</style>
</head>

<body>
<webview id="foo" src="https://www.google.com/"></webview>
</body>

</html>

My package.json code:

 "name": "helloworld", 
 "main": "index.html" 
}  

105191105-c45a7400-5b47-11eb-8f3c-7c3dae5bf6dc.png

avisha...@gmail.com

unread,
Jan 21, 2021, 4:07:20 AM1/21/21
to nw.js
Give your html and body tags height 100% too.
Reply all
Reply to author
Forward
0 new messages