The49.Maui.BottomSheet
The49.Maui.BottomSheet copied to clipboard
Scroll inside BottomSheet does not work if you rotate the device orientation
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
- Open a BottomSheetPage with a ScrollView as the content
- Rotate the device orientation
- If the content is larger than the devices height, the user cannot scroll anymore
Version with bug
1.0.1
Affected platforms
iOS
I am also experiencing this issue
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?