aboutsummaryrefslogtreecommitdiff
path: root/demos/InputMethod
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-10-05 17:10:42 +0800
committerYuqian Yang <crupest@crupest.life>2025-10-05 17:10:42 +0800
commit7fffbd150b7dc54ced2cf79ed466c2beea6483b2 (patch)
tree46090bb7d8b01e92cd14d227fbeeb84b0210adc9 /demos/InputMethod
parent1b20e0cbae04bd1bb9e0054a0335fe82c22476a8 (diff)
downloadcru-7fffbd150b7dc54ced2cf79ed466c2beea6483b2.tar.gz
cru-7fffbd150b7dc54ced2cf79ed466c2beea6483b2.tar.bz2
cru-7fffbd150b7dc54ced2cf79ed466c2beea6483b2.zip
Fix TextSinglePoint and ime demo.HEADmain
Diffstat (limited to 'demos/InputMethod')
-rw-r--r--demos/InputMethod/main.cpp2
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();
};