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

Controls slides down when using frame in scrollview and keyboard gets focused. (Happens in iOS only) #22848

Open
divyesh008 opened this issue Jun 5, 2024 · 1 comment

Comments

@divyesh008
Copy link

divyesh008 commented Jun 5, 2024

Description

I have developed a custom editor control using XAML, which includes a Frame control as a wrapper. When this control is utilized within a Page containing a ScrollView, an issue arises on iOS devices: the entire page shifts downward when the keyboard gains focus.

What a custom control do?

I've developed an ActionableEditor control that displays the full text when it is actively being edited. Once the user stops editing and the editor loses focus, the text is truncated to two lines with an ellipsis. This functionality is managed using the Focused and Unfocused events of the Editor control.

Notably, if these events are removed, this issue not occurs. But than I'll not be able to achieve my requirement.

Steps to Reproduce

  1. Open the attached project.
  2. After typing long text like 4-5 lines when I click on orange button it shows alert dialog.
  3. Click the Ok button and than notice how ui shifts down entirely.
  4. It gets aligned properly again once you click on Done button on keyboard.
  5. See the attached video for reference
Screen.Recording.2024-06-05.at.4.59.54.PM.mov

Link to public reproduction project repository

https://github.com/divyesh008/scrollViewBug_maui.git

Version with bug

Installed Workload Id Manifest Version Installation Source

maui 8.0.21/8.0.100 SDK 8.0.100

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms, No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 17.2

Did you find any workaround?

Not yet.

Relevant log output

No response

@divyesh008 divyesh008 added the t/bug Something isn't working label Jun 5, 2024
Copy link
Contributor

github-actions bot commented Jun 5, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants