Something like this needed as well.
```
if (webView.fullscreen) {
    webView.height = container.height
} else {
    container.resetHeight()
}
```
Feel free to fix container.resetHeight() to force fullscreen. End result could be something like... instead if - else block.
```
container.resetHeight(false, webView.fullscreen)
```