[iOS] MAUI ScrollView is not scrollable when Keyboard hides content #15159
Labels
area-controls-scrollview
ScrollView
platform/iOS 🍎
s/triaged
Issue has been reviewed
s/try-latest-version
Please try to reproduce the potential issue on the latest public version
t/bug
Something isn't working
Description
Cannot scroll scrollview to reveal hidden content.
Steps to Reproduce
Reproduce:
<Entry Placeholder="Test me" />
Expected:
The scrollview is scrollable so as to access the content hidden by the keyboard.
Xamarin forms produces the expected result. You can scroll to reveal hidden content as expected without any special code to make this happen.
You can reproduce this expected behaviour by following the reproduction steps but instead of course using the XF template...
Actual:
Because the scrollview is not higher than the page, scrollview is not scrollable meaning once the keyboard is shown, no content hidden by the keyboard is accessible.
Problem:
Ignoring the fact this fix #4792 (which programatically scrolls to the entry which is focused) partly solves the problem, in my situation not being able to scroll is an issue because I have suggestion list which is displayed beneath the entry which also cannot be viewed or accessed which would I believe is not fixed by the aforementioned.
Another example is having a save button etc at the bottom of the page. Again not accessible then.
Link to public reproduction project repository
https://github.com/ryanlpoconnell/maui_ios_noscrollview_keyboard
Version with bug
7.0.81
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 16.2 (Possibly all)
Did you find any workaround?
HACKY due to time available... using previously used XF renderer
https://github.com/ryanlpoconnell/maui_ios_noscrollview_keyboard/tree/workaround_adjustlayoutmargin
NOTE: requires using UseMauiCompatibility() -> See https://learn.microsoft.com/en-us/dotnet/maui/migration/custom-renderers
Relevant log output
No response
The text was updated successfully, but these errors were encountered: