-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Cursor in empty BasicTextField only on Left (Start) side on Linux when TextAlign is on Right (End) side #2711
Cursor in empty BasicTextField only on Left (Start) side on Linux when TextAlign is on Right (End) side #2711
Comments
Thank you for your report! It would be great, if you could attach the reproducing sample not only the screenshot so we would not need to make it from the screenshot. |
Reproduces on Windows too
|
|
Center alignment in desktop has this problem too. BasicTextField(
value = "",
onValueChange = {},
textStyle = LocalTextStyle.current.copy(
textAlign = TextAlign.Center
), |
Any updates on this? Still reproducing on Compose 1.6.2. |
Should be fixed by JetBrains/compose-multiplatform-core#1354 |
…set explicitly (#1354) After focusing on the textfield and before entering any text, now blinking cursor will be positioned in accordance with TextAlignment. Fixes https://youtrack.jetbrains.com/issue/COMPOSE-1360/ Fixes JetBrains/compose-multiplatform#2711 Fixes JetBrains/compose-multiplatform#3098 Fixes JetBrains/compose-multiplatform#4611 ## Testing Manual testing. ## Release Notes <!-- Optional, if omitted - won't be included in the changelog Sections: - Highlights - Known issues - Breaking changes - Features - Fixes Subsections: - Multiple Platforms - iOS - Desktop - Web - Resources - Gradle Plugin --> ### Fixes - Multiple Platforms - Fix initial cursor position in the empty `TextField` with explicitly set `TextAlignment`. ## Google CLA You need to sign the Google Contributor’s License Agreement at https://cla.developers.google.com/. This is needed since we synchronise most of the code with Google’s AOSP repository. Signing this agreement allows us to synchronise code from your Pull Requests as well. --------- Co-authored-by: Ivan Matkov <ivan.matkov@jetbrains.com>
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks. |
Cursor in empty BasicTextField only on Left (Start) side on Linux when TextAlign is on Right (End) side
Compose: 1.3.0
Kotlin: 1.8.0
OS: 6.1.9-1-MANJARO
Architecture: x86
On Linux:
If write something:
On Android:
If write something:
The text was updated successfully, but these errors were encountered: