the49ltd / The49.Maui.BottomSheet

.NET MAUI library used to display pages as Bottom Sheets
MIT License
327 stars 31 forks source link

[iOS] Height is calculated incorrectly on iPad #97

Open varyamereon opened 9 months ago

varyamereon commented 9 months ago

On wide iOS devices (for example iPads), where the BottomSheet does not take up the full width of the screen, the BottomSheet is presented in the centre of the screen as opposed to showing all the way to the bottom. The calculation for the height is still made all the way to the bottom of the screen however, which means for example it is impossible to scroll all the way to the bottom of content inside the BottomView on iPad.

Here is an example on an iPhone showing the button at the end of a vertical ScrollView:

Simulator Screenshot - iPhone 15 Pro Max - 2024-02-10 at 10 03 45

and here is the same on an iPad. The ScrollView cannot be scrolled enough to bring the button into view:

Simulator Screenshot - iPad Pro (12 9-inch) (6th generation) - 2024-02-10 at 10 03 55

Here is a sample demonstrating the issue. The issue does not occur on Android.

arosanti commented 4 months ago

Anyone have a workaround or a fix for this?