Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix WebView scrolling in BottomSheet #261

Merged
merged 1 commit into from
Mar 17, 2023
Merged

Conversation

mbarta
Copy link
Contributor

@mbarta mbarta commented Mar 14, 2023

This PR updates the layout of TurboWebBottomSheetDialogFragment to enable nested scrolling of a WebView in BottomSheet.

Before (no nested scrolling) After (nested scrolling)
before after

@mbarta mbarta requested review from jayohms and jhutarek March 14, 2023 10:04
@mbarta mbarta self-assigned this Mar 14, 2023
@@ -6,15 +6,16 @@
android:layout_width="match_parent"
android:layout_height="match_parent">

<FrameLayout
<androidx.core.widget.NestedScrollView
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WebView hasn't always played nicely with NestedScrollView, but maybe that's been resolved over the last couple years. We'll want to test this thoroughly. Can you make sure that we're using the latest androidx dependency?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There don't seem to be any issues with this anymore 🤞

I updated all the dependencies in a separate PR (#262) and there don't seem to be any issues.

@mbarta mbarta merged commit 04a7d09 into main Mar 17, 2023
@mbarta mbarta deleted the bottomsheet_layout_fixes branch March 17, 2023 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants