c-smile / sciter-sdk

Sciter is an embeddable HTML/CSS/scripting engine
http://sciter.com
Other
2.11k stars 224 forks source link

BUG: position: fixed #134

Open SonnyX opened 4 years ago

SonnyX commented 4 years ago

The following minimal code example stopped behaving properly since 4.3.0.18.

<html>
<head>
<style>
#overlay {
  position:fixed;
  width:*;
  height:100%;
  background-color: #000000a0;
  vertical-align: middle; 
}

#box {
  width: 485dip;
  height: 200dip;
  margin: auto auto;
  background-color: #0c151e;
}
</style>
</head>
<body>
 <div#overlay><div#box>hi</div></div>
</body>
</html>

4.3.0.19: 4.3.0.19 4.3.0.17: 4.3.0.17

c-smile commented 4 years ago

Thanks.

Please use percentages there for a while:

#overlay {
  position:fixed;
  width:100%;
  height:100%;
  ...