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

[iOS] Editor when entering a text which exceeds the maximum height resets the position #25938

Closed
SuthiYuvaraj opened this issue Nov 19, 2024 · 6 comments · Fixed by #26203
Closed
Assignees
Labels
area-controls-editor Editor fixed-in-9.0.21 partner/syncfusion Issues / PR's with Syncfusion collaboration platform/iOS 🍎 potential-regression This issue described a possible regression on a currently supported version., verification pending s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@SuthiYuvaraj
Copy link
Contributor

Description

Create a Editor with MaximumHeight and AutoSize as TextChanges , when the text exceeds the maximum height ,each time when you enter the text , the frame gets resetted to the default position

Steps to Reproduce

1.Create a MAUI project
2. Add Editor with MaximumHeight and AutoSize as TextChanges
<VerticalStackLayout> <Editor BackgroundColor="Yellow" AutoSize="TextChanges" MaximumHeightRequest="200" /> <Label Text="Editor iOS Bug Demonstration: - Editor does maintains the position , each the frame get resetted to default)"/> </VerticalStackLayout>
3.Expected Behavior : Scroller should maintain the same position
4.Actual Behavior : Odd flicker due to reset , we need to scroll to see the text enteredTestMaui.zip

Link to public reproduction project repository

No response

Version with bug

9.0.10 SR1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

@SuthiYuvaraj SuthiYuvaraj added the t/bug Something isn't working label Nov 19, 2024
@kevinxufei kevinxufei added s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage platform/iOS 🍎 labels Nov 19, 2024
@kevinxufei
Copy link

I can repro this issue at iOS platform on the latest 17.13 P1(9.0.10 & 9.0.0).

@tj-devel709
Copy link
Member

tj-devel709 commented Nov 20, 2024

For reference, this is the behavior

oldEditorFrame.mov

@PureWeen PureWeen added the potential-regression This issue described a possible regression on a currently supported version., verification pending label Nov 20, 2024
@tj-devel709
Copy link
Member

Also verified that this happened in .NET 8 as well!

@PureWeen PureWeen added this to the Backlog milestone Nov 21, 2024
@SuthiYuvaraj
Copy link
Contributor Author

This appears to be an issue where UITextView and UIScrollView fail to reset their offset appropriately when text is entered. The behavior becomes more noticeable when using the Return key to add new lines or spaces, causing the visible content to exceed the bounds of the view without proper scrolling adjustments

Screen.Recording.2024-11-22.at.6.24.43.PM.mov

@kubaflo
Copy link
Contributor

kubaflo commented Nov 30, 2024

Hi, @tj-devel709 this PR fixes this:#26087 though it was aimed to fix a different bug 😅

@snice1981
Copy link

Same problem here...

Any fix soon or any workaround?

@sheiksyedm sheiksyedm added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Dec 17, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jan 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-editor Editor fixed-in-9.0.21 partner/syncfusion Issues / PR's with Syncfusion collaboration platform/iOS 🍎 potential-regression This issue described a possible regression on a currently supported version., verification pending s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
9 participants