Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[components-webview] Respect component height. Fixes JB#57689
Ensures that the Gecko rendering height is the same as the component
height, rather than being fixed to the height of the screen.

This prevents content being lost from the bottom of the WebView in case
the height is shorter than the screen height.
  • Loading branch information
llewelld committed Mar 7, 2022
1 parent 579f3f9 commit df9ae3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion import/webview/WebView.qml
Expand Up @@ -66,7 +66,7 @@ RawWebView {
_acceptTouchEvents: !textSelectionActive

viewportHeight: webViewPage
? ((webViewPage.orientation & Orientation.PortraitMask) ? Screen.height : Screen.width)
? ((webViewPage.orientation & Orientation.PortraitMask) ? height : width)
: undefined

orientation: {
Expand Down

0 comments on commit df9ae3c

Please sign in to comment.