| Summary: | Incorrect IME position when window wider than editor width | ||
|---|---|---|---|
| Product: | [Applications] ghostwriter | Reporter: | jichu4n |
| Component: | general | Assignee: | megan.conkle |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | jichu4n |
| Priority: | NOR | ||
| Version First Reported In: | 23.08.4 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| See Also: | https://bugs.kde.org/show_bug.cgi?id=460158 | ||
| Latest Commit: | https://invent.kde.org/office/ghostwriter/-/commit/25b2227182eba975a09fb5a1f419ae2ba16ea697 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: | Screenshots showing correct and incorrect IME positions | ||
|
Description
jichu4n
2023-12-24 07:46:08 UTC
From playing around with the code locally, my understanding is that we just need to add one extra line in `MarkdownEditor::inputMethodQuery()` after `r.translate(contentOffset().toPoint());` : r.translate(this->viewportMargins().left(), 0); This is my first time contributing to the KDE project so I'm new to the process, but I'd be happy to create a pull request if that would help! Thanks! Sent merge request to fix: https://invent.kde.org/office/ghostwriter/-/merge_requests/34 Git commit c6e9f7fbd8414502a657a6977c9c94d19ac846e5 by Emir SARI, on behalf of Chuan Ji. Committed on 04/03/2024 at 07:59. Pushed by esari into branch 'master'. Fix IME position when window is wider than editor width. Before:  After:  M +1 -0 src/editor/markdowneditor.cpp https://invent.kde.org/office/ghostwriter/-/commit/c6e9f7fbd8414502a657a6977c9c94d19ac846e5 Git commit 25b2227182eba975a09fb5a1f419ae2ba16ea697 by Emir SARI, on behalf of Chuan Ji. Committed on 04/03/2024 at 08:00. Pushed by esari into branch 'release/24.02'. Fix IME position when window is wider than editor width. Before:  After:  (cherry picked from commit c6e9f7fbd8414502a657a6977c9c94d19ac846e5) deda426c Fix IME position when window is wider than editor width. M +1 -0 src/editor/markdowneditor.cpp https://invent.kde.org/office/ghostwriter/-/commit/25b2227182eba975a09fb5a1f419ae2ba16ea697 |