Skip to content

Keyboard Scrolling in editors with Center or End VerticalTextAlignment is off #24977

@tj-devel709

Description

@tj-devel709

Description

When you have a large Editor with the VerticalTextAlignment set to Center or End on iOS, both the keyboard scrolling inside KeyboardAutoManagerScroll and the MauiTextView.ShouldCenterVertically are working at the same time counterproductively to satisfy keeping the cursor above the keyboard and keeping the text aligned to the center or bottom. You'll see once the, editor's content is greater than the size of the editor, the MauiTextView.ShouldCenterVertically method will stop having effect and then just the KeyboardAutoManagerScroll will be keeping the cursor above the keyboard.

KeyboardScrollingEditorAlignment.mov

Steps to Reproduce

Video is from UITest - Issue19214_2

 <Grid RowDefinitions="50, 50, *, 50" Margin="30">
        <Entry Text="Content before" AutomationId="EntryBefore" FontSize="Large" ReturnType="Next" BackgroundColor="Aquamarine" Grid.Row="0" />
        <Label x:Name="CursorHeightTracker" Text="0" AutomationId="CursorHeightTracker" FontSize="Large" BackgroundColor="Aquamarine" Grid.Row="1" />
        <Editor x:Name="editor" AutomationId="IssueEditor" FontSize="Large" BackgroundColor="Orange" Grid.Row="2" VerticalTextAlignment="Center" TextChanged="Editor_TextChanged" />
        <Button Text="Erase" Grid.Row="3"/>
    </Grid>

Link to public reproduction project repository

No response

Version with bug

8.0.90 SR9

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

iOS 17

Did you find any workaround?

The keyboard scrolling can be disabled or the editor can be moved to a location above the keyboard

Relevant log output

No response

Metadata

Metadata

Labels

area-controls-editorEditorarea-keyboardKeyboard, soft keyboardi/regressionThis issue described a confirmed regression on a currently supported versionp/1Work that is important, and has been scheduled for release in this or an upcoming sprintpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/iosregressed-in-8.0.90s/triagedIssue has been reviewedt/bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions