Fix N_SE-40139 cursor display error
authorWonBae Kim <wb.kim@samsung.com>
Mon, 3 Jun 2013 08:13:51 +0000 (17:13 +0900)
committerWonBae Kim <wb.kim@samsung.com>
Mon, 3 Jun 2013 08:13:51 +0000 (17:13 +0900)
Change-Id: Ib774e53d6652a993b3b6ca0f5962aa69a77e8520

src/ui/controls/FUiCtrl_EditPresenter.cpp [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 0cb12ae..59dbbc6
@@ -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;