Skip to content

Fix InputMethodSession.getTextLocation #2118

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

Merged

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