Skip to content
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

[BUG] [iOS] Focusing on Entry within Popup results in Layout Issues #2170

Open
2 tasks done
NeilMalcolm opened this issue Sep 3, 2024 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working unverified

Comments

@NeilMalcolm
Copy link

NeilMalcolm commented Sep 3, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

I see different behaviour based on the platform and based on how the Popup's Content is laid out.

Issue 1:

When focusing on an Entry within a Popup which has a Color defined, the content of the popup is pushed upwards out of bounds.

Issue 2:

When focusing on an Entry within a Popup which has a Transparent Color defined, the popup itself is pushed upwards farther than the prior popup and if large enough will go offscreen.

You can see examples in these recordings, two popups are shown with t

iPad example

Screen.Recording.2024-09-04.at.00.27.33.mov

iPhone example

Screen.Recording.2024-09-04.at.00.30.26.mov

Expected Behavior

The popup itself should move upwards above the keyboard but the content should not be forced upwards.

Possibly the popup should take up remaining space available on the screen.

Additionally

Steps To Reproduce

Issue 1

  1. Create a popup with the Color property defined (not Colors.Transparent) with an entry inside
  2. Show the popup
  3. Focus on the entry
  4. See the content is pushed upwards

Issue 2

  1. Create a popup with the Color property set to Colors.Transparent with an entry inside
  2. Show the popup
  3. Focus on the entry
  4. See the popup itself is pushed upwards further than before and can go off screen

Link to public reproduction project repository

https://github.com/NeilMalcolm/CommunityToolkitEntryIssue

Environment

- .NET MAUI CommunityToolkit: 9.0.3
- OS: iOS 17.2
- .NET MAUI: 8.0.82

Anything else?

I see we had bug #1561 previously which is marked as closed but I still see this issue. I understand we can use the KeyboardAutoManagerScroll for issue 1, but that doesn't resolve issue 2.

@NeilMalcolm NeilMalcolm added bug Something isn't working unverified labels Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unverified
Projects
None yet
Development

No branches or pull requests

1 participant