You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dima-avdeev-jb
changed the title
TextField issues with Center and Right text alignment
iOS TextField issues with Center and Right text alignment
Jun 19, 2023
…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/FixesJetBrains/compose-multiplatform#2711FixesJetBrains/compose-multiplatform#3098FixesJetBrains/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>
Describe the bug
There are some bugs with
Center
orRight
text alignment on iOS. Sample code:Bug #1: In empty TextField the caret is placed always on the left side, and doesn't respect text alignment. Same happens with each new line.
2023-04-24.17.11.32.mov
Bug #2: With
Right
layout a whitespaces after a symbol aren't displayed until a next symbol is entered. It works fine withLeft
andCenter
layouts.2023-04-24.17.15.32.mov
Affected platforms
Versions
The text was updated successfully, but these errors were encountered: