aboutsummaryrefslogtreecommitdiff
path: root/demos/InputMethod
diff options
context:
space:
mode:
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();
};