KEMBAR78
Fix InputMethodSession.getTextLocation by m-sasha · Pull Request #2118 · JetBrains/compose-multiplatform-core · GitHub
Skip to content

Conversation

@m-sasha
Copy link
Member

@m-sasha m-sasha commented May 14, 2025

The focusRect size needs to be scaled according to the density, too.

Fixes https://youtrack.jetbrains.com/issue/CMP-8176/Input-Method-toolbar-too-far-from-text

Testing

Tested manually with

TextField(
    state = rememberTextFieldState(""),
    textStyle = LocalTextStyle.current.copy(fontSize = 64.sp),
)

This could be tested by QA

Release Notes

Fixes - Desktop

  • Fix the positioning of the IME popup being too far away from the text, on screens with density greater than 1.

@m-sasha m-sasha requested a review from igordmn May 14, 2025 08:06
@m-sasha m-sasha force-pushed the m-sasha/fix-InputMethodSession-getTextLocation-size branch from d615503 to bb3f1d1 Compare May 14, 2025 09:19
@m-sasha m-sasha merged commit e2bd8a4 into jb-main May 14, 2025
10 checks passed
@m-sasha m-sasha deleted the m-sasha/fix-InputMethodSession-getTextLocation-size branch May 14, 2025 13:21
Kpotko added a commit that referenced this pull request Jun 10, 2025
… to density too (#2158)

**This is a cherry-pick of
#2118 into
`release/1.8`.**

The `focusRect` size needs to be scaled according to the density, too.

Fixes
https://youtrack.jetbrains.com/issue/CMP-8176/Input-Method-toolbar-too-far-from-text

## Testing
Tested manually with
```
TextField(
    state = rememberTextFieldState(""),
    textStyle = LocalTextStyle.current.copy(fontSize = 64.sp),
)
```

This could be tested by QA

## Release Notes
### Fixes - Desktop
- Fix the positioning of the IME popup being too far away from the text,
on screens with density greater than 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants