From 78f9f12f200ce73cc9370acbfca21116fa242667 Mon Sep 17 00:00:00 2001 From: WonBae Kim Date: Mon, 3 Jun 2013 17:13:51 +0900 Subject: [PATCH] Fix N_SE-40139 cursor display error Change-Id: Ib774e53d6652a993b3b6ca0f5962aa69a77e8520 --- src/ui/controls/FUiCtrl_EditPresenter.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) mode change 100644 => 100755 src/ui/controls/FUiCtrl_EditPresenter.cpp diff --git a/src/ui/controls/FUiCtrl_EditPresenter.cpp b/src/ui/controls/FUiCtrl_EditPresenter.cpp old mode 100644 new mode 100755 index 0cb12ae..59dbbc6 --- a/src/ui/controls/FUiCtrl_EditPresenter.cpp +++ b/src/ui/controls/FUiCtrl_EditPresenter.cpp @@ -2702,6 +2702,12 @@ _EditPresenter::CalculateCursorBounds(const FloatRectangle& textBounds, FloatRec cursorBounds.height -= cursorHeightDiff; } + if (cursorBounds.y + cursorBounds.height > textBounds.y + textBounds.height) + { + float cursorHeightDiff = cursorBounds.y + cursorBounds.height - textBounds.y - textBounds.height - 1.0f; + cursorBounds.height -= cursorHeightDiff; + } + if (cursorBounds.x == textBounds.x + textBounds.width) { cursorBounds.x -= 1.0f; @@ -2773,6 +2779,12 @@ _EditPresenter::CalculateCursorBounds(const Rectangle& textBounds, Rectangle& cu cursorBounds.height -= cursorHeightDiff; } + if (cursorBounds.y + cursorBounds.height > textBounds.y + textBounds.height) + { + int cursorHeightDiff = cursorBounds.y + cursorBounds.height - textBounds.y - textBounds.height - 1; + cursorBounds.height -= cursorHeightDiff; + } + if (cursorBounds.x == textBounds.x + textBounds.width) { cursorBounds.x -= 1; -- 2.7.4