fixed bug (N_SE-52713, N_SE-52802)
authorChulheon <ch.jeong47@samsung.com>
Tue, 24 Sep 2013 02:00:39 +0000 (11:00 +0900)
committerChulheon <ch.jeong47@samsung.com>
Tue, 24 Sep 2013 02:00:39 +0000 (11:00 +0900)
Change-Id: I9e614c92f167bf3727978f8591244dd720322420

src/ui/controls/FUiCtrl_Edit.cpp
src/ui/controls/FUiCtrl_EditCopyPasteManager.cpp
src/ui/controls/FUiCtrl_EditPresenter.cpp

index 53a8430..5711121 100755 (executable)
@@ -2168,7 +2168,7 @@ _Edit::OnAncestorEnableStateChanged(const _Control& control)
 
        _pEditPresenter->SetKeypadEventSkipped(!enableState);
 
-       if (__inputStyle != INPUT_STYLE_FULLSCREEN)
+       if (__inputStyle != INPUT_STYLE_FULLSCREEN && !IsViewModeEnabled())
        {
                _pEditPresenter->SetCursorDisabled(!enableState);
        }
index e4e818d..559b33c 100644 (file)
@@ -761,6 +761,7 @@ _EditCopyPasteHandler::CreateInstanceN(const Point& point, int handlerCursorPos,
        pCopyPasteHandler->Open(false);
        pCopyPasteHandler->SetBounds(bounds);
        pCopyPasteHandler->CheckReverseStatus();
+       pCopyPasteHandler->AdjustBounds();
 
        return pCopyPasteHandler;
 
@@ -806,6 +807,7 @@ _EditCopyPasteHandler::CreateInstanceN(const FloatPoint& point, int handlerCurso
        pCopyPasteHandler->Open(false);
        pCopyPasteHandler->SetBounds(bounds);
        pCopyPasteHandler->CheckReverseStatus();
+       pCopyPasteHandler->AdjustBounds();
 
        return pCopyPasteHandler;
 
index fb0fe41..1d757fc 100755 (executable)
@@ -3341,6 +3341,8 @@ _EditPresenter::OnTouchPressed(const _Control& source, const _TouchInfo& touchIn
 bool
 _EditPresenter::OnTouchCanceled(const _Control& source, const _TouchInfo& touchinfo)
 {
+       InitializeCopyPasteManager();
+
        if ((&source != __pEdit) || (__pEdit->GetEnableState() == false))
        {
                return false;
@@ -7292,7 +7294,14 @@ _EditPresenter::CalculateAbsoluteCursorBounds(int rowIndex, int columnIndex, Flo
                }
                else
                {
-                       absCursorBounds.height = __calculatedCursorBounds.height;
+                       if (__calculatedCursorBounds.height > 0)
+                       {
+                                  absCursorBounds.height = __calculatedCursorBounds.height;
+                       }
+                       else
+                       {
+                                  absCursorBounds.height = cursorHeight;
+                       }
                }
        }
        else