-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[iOS] CollectionView gets moved when keyboard or picker show up #21630
Comments
I'm experiencing a similar issue with the CollectionView being pushed upward on iOS and it's very annoying, because I cannot see what/where I'm typing. Does your workaround come with any unwatend side effects? |
@ewerspej When I KeyboardAutoManagerScroll.Disconnect() on that page the behavior is as follows: |
@MichaelShapiro I tried it and it doesn't help with my problem, I need the bottom elements to be visible. I have a CollectionView and if there are only a few items, they disappear at the top when the page is pushed up. That way, I cannot see new items being added via an Entry at the bottom of the page. Update: I found a #if IOS
UIKit.UIKeyboard.Notifications.ObserveWillShow((sender, args) =>
{
var keyboardHeight = (double)args.FrameEnd.Height;
SomeView.TranslationY = keyboardHeight;
});
UIKit.UIKeyboard.Notifications.ObserveWillHide((sender, args) =>
{
SomeView.TranslationY = 0;
});
#endif |
Can repro this issue on the latest 17.10.0 preview 2(8.0.14), but can't repro it on 8.0.6&8.0.7. |
@tj-devel709 thoughts? |
This sounds like a separate issue, could you please open a new issue and include a reproducible sample / image gif of what you are seeing? Also what version are you using? |
As for the scrolling with the controls in the NavBar, I believe I have a quick solution and will create a PR for shortly! Thanks! |
Description
This is/might be related to a recent fix in MAUI 8.0.10 #19875
If the page has the default KeyboardAutoManagerScroll behavior (enabled/Connected) then CollectionView is moved down when the keyboard or picker, that is triggered from TitleView (outside of the ContentPage.Content), shows up.
The first two boxes are in the CollectionView's header - they work as expected thanks to #19875 fix.
The top two boxes are in the TitleView - they don't behave good:(
IMG_0023.MOV
Steps to Reproduce
Run the repo posted below
Link to public reproduction project repository
https://github.com/MichaelShapiro/MauiBugs/tree/master/KeyboardMakesPageShift
Version with bug
8.0.10 SR3
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.3 GA
Affected platforms
iOS
Affected platform versions
No response
Did you find any workaround?
Yes, I had to use KeyboardAutoManagerScroll.Disconnect() for that page to prevent ScrollView from moving down.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: