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

[Fabric] Fix y-position of TextInput's caret #11717

Merged
merged 4 commits into from
Jun 13, 2023

Conversation

TatianaKapos
Copy link
Contributor

@TatianaKapos TatianaKapos commented Jun 7, 2023

Description

Fixes the y-position of TextInput's caret when located within a ScrollView. The ScrollViewComponent adds extra space via the getClientRect after TextInput gets initially drawn. This uses the correct RECT that is set when TextInput is drawn.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Why

Resolves #11486

Screenshots

Before

Playground-composition_ss18BwPvtd.mp4

After

Playground-composition_UsbX41QD6k.mp4

Testing

Tested locally

Microsoft Reviewers: Open in CodeFlow

@TatianaKapos TatianaKapos requested a review from a team as a code owner June 7, 2023 21:37
@TatianaKapos TatianaKapos marked this pull request as draft June 8, 2023 21:26
@TatianaKapos TatianaKapos marked this pull request as ready for review June 12, 2023 21:24
@TatianaKapos TatianaKapos requested a review from acoates-ms June 12, 2023 21:24
@TatianaKapos TatianaKapos merged commit 7bd374c into microsoft:main Jun 13, 2023
@TatianaKapos TatianaKapos deleted the tk-fabric-textbox branch June 13, 2023 16:35
@jonthysell jonthysell added the New Architecture Broad category for issues that apply to the RN "new" architecture of Turbo Modules + Fabric label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Fabric Support Facebook Fabric Area: TextInput New Architecture Broad category for issues that apply to the RN "new" architecture of Turbo Modules + Fabric
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Fabric's TextInput caret displays in wrong position
3 participants