diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-10-05 17:10:42 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-10-05 17:10:42 +0800 |
commit | 7fffbd150b7dc54ced2cf79ed466c2beea6483b2 (patch) | |
tree | 46090bb7d8b01e92cd14d227fbeeb84b0210adc9 /demos | |
parent | 1b20e0cbae04bd1bb9e0054a0335fe82c22476a8 (diff) | |
download | cru-7fffbd150b7dc54ced2cf79ed466c2beea6483b2.tar.gz cru-7fffbd150b7dc54ced2cf79ed466c2beea6483b2.tar.bz2 cru-7fffbd150b7dc54ced2cf79ed466c2beea6483b2.zip |
Diffstat (limited to 'demos')
-rw-r--r-- | demos/InputMethod/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/InputMethod/main.cpp b/demos/InputMethod/main.cpp index 6c0fba3c..ce7f0c21 100644 --- a/demos/InputMethod/main.cpp +++ b/demos/InputMethod/main.cpp @@ -119,7 +119,7 @@ int main() { static_cast<int>(committed_text.size()); auto cursor_rect = text_layout->TextSinglePoint(cursor_pos, false); input_method_context->SetCandidateWindowPosition( - {cursor_rect.left, cursor_rect.GetBottom()}); + {cursor_rect.left, y + cursor_rect.GetBottom()}); window->RequestRepaint(); }; |