From 7fffbd150b7dc54ced2cf79ed466c2beea6483b2 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Sun, 5 Oct 2025 17:10:42 +0800 Subject: Fix TextSinglePoint and ime demo. --- demos/InputMethod/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'demos/InputMethod/main.cpp') 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(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(); }; -- cgit v1.2.3