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

[Android] Fix bidirectional scrolling on Android #13623

Merged
merged 3 commits into from
Mar 8, 2023
Merged

[Android] Fix bidirectional scrolling on Android #13623

merged 3 commits into from
Mar 8, 2023

Conversation

rmarinho
Copy link
Member

@rmarinho rmarinho commented Mar 1, 2023

Description of Change

On android , we use 2 native scrollviews to handle bidirectional scrolling. The HorizontalScrollView was always laying on the available height, but we want the vertical scroll to work on it's parent we need to use the scrollview content height and not the default available height

Issues Fixed

Fixes #2768
Fixes #5759
Fixes #7811
Fixes #9000
Related to #7979 android part only
Related to #13187 android part only

@rmarinho rmarinho requested a review from hartez March 1, 2023 15:46
@rmarinho rmarinho added t/bug Something isn't working platform/android 🤖 labels Mar 1, 2023
Copy link
Member

@mandel-macaque mandel-macaque left a comment

Choose a reason for hiding this comment

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

Nit: is not a blocker, but please update the if before you land.

src/Core/src/Platform/Android/MauiScrollView.cs Outdated Show resolved Hide resolved
@Eilon Eilon added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label Mar 2, 2023
src/Core/src/Platform/Android/MauiScrollView.cs Outdated Show resolved Hide resolved
src/Core/src/Platform/Android/MauiScrollView.cs Outdated Show resolved Hide resolved
@jsuarezruiz
Copy link
Contributor

Could we include a sample in the Gallery?. Maybe in the actual sample include a Picker allowing to change the Orientation property?

jfversluis and others added 2 commits March 2, 2023 11:38
Co-authored-by: Samantha Houts <samhouts@users.noreply.github.com>
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
@rmarinho
Copy link
Member Author

rmarinho commented Mar 2, 2023

@jsuarezruiz I added a gallery example on #13657 . I will also see if I can add device tests tomorrow

@hartez hartez merged commit d90d963 into main Mar 8, 2023
@hartez hartez deleted the fix-5759 branch March 8, 2023 19:00
@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 2023
@Eilon Eilon removed the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label May 14, 2024
@samhouts samhouts added the fixed-in-8.0.0-preview.3.8149 Look for this fix in 8.0.0-preview.3.8149! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-scrollview ScrollView fixed-in-8.0.0-preview.3.8149 Look for this fix in 8.0.0-preview.3.8149! platform/android 🤖 t/bug Something isn't working
Projects
None yet
7 participants