The change to support proper nested scrolling of a WebView inside of a BottomSheet introduced in https://github.com/hotwired/turbo-android/pull/261 unfortunately caused some side-effects to other full-height screens in some cases related to scrolling of nested content.
Therefore, this PR restores the default layout parameters of the shared WebView to MatchParent and only if the WebView's parent is ScrollingView, its height is set to WrapContent.
The change to support proper nested scrolling of a WebView inside of a BottomSheet introduced in https://github.com/hotwired/turbo-android/pull/261 unfortunately caused some side-effects to other full-height screens in some cases related to scrolling of nested content.
Therefore, this PR restores the default layout parameters of the shared WebView to
MatchParent
and only if the WebView's parent isScrollingView
, its height is set toWrapContent
.