The49.Maui.BottomSheet icon indicating copy to clipboard operation
The49.Maui.BottomSheet copied to clipboard

Scroll inside BottomSheet does not work if you rotate the device orientation

Open mikebaumannch opened this issue 1 year ago • 2 comments

Description

If there is a scrollView as the main content of the BottomSheetPage and you rotate the orientation of the device (e.g. to landscape mode), the scrollView does not get layout correctly. The scrollView has still the same height as previously. Therefore, the scrolling does not work properly. The issue always occurs when the orientation of the bottom sheet is different from the initial orientation while starting the app.

While debugging this issue I was curious about the Window.height property. The value does not getting updated while rotating the device. Instead, the Window.width property updated to the matching value. Due to that, the BottomSheet Detent gets measured wrong here: https://github.com/the49ltd/The49.Maui.BottomSheet/blob/main/src/Platforms/iOS/BottomSheetContainer.cs#L43.

Steps to Reproduce

  1. Open a BottomSheetPage with a ScrollView as the content
  2. Rotate the device orientation
  3. If the content is larger than the devices height, the user cannot scroll anymore

Version with bug

1.0.1

Affected platforms

iOS

mikebaumannch avatar Aug 22 '23 12:08 mikebaumannch

I am also experiencing this issue

widavies avatar Sep 14 '23 22:09 widavies

I cannot even scroll at all on android. i have a

bottomsheet scrollview stacklayout label collectionview stacklayout scrollview bottomsheet

what's wrong with this xaml code, so that i am not able to scroll vertically?

Raffro avatar Sep 19 '23 04:09 Raffro