fixed bug (Focus Display, ContextMenu hiding issue)
authorChulheon <ch.jeong47@samsung.com>
Wed, 27 Mar 2013 00:56:43 +0000 (09:56 +0900)
committerGerrit Code Review <gerrit2@kim11>
Wed, 27 Mar 2013 10:32:21 +0000 (19:32 +0900)
Change-Id: Ic271fb3ac5a4e66d0a9262fc7489853d694e2ba4

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

index b1db30e..00b18a9 100644 (file)
@@ -1956,7 +1956,7 @@ _Edit::OnFocusLost(const _Control& source)
 {
        __internalFocus = false;
        _pEditPresenter->OnFocusLost();
-       Invalidate();
+       _Control::OnFocusLost(source);
 
        return true;
 }
index 9cf9fed..d0bedd0 100755 (executable)
@@ -1439,6 +1439,10 @@ _EditCopyPasteManager::CreateCopyPastePopup(void)
 
        else
        {
+               if (editShowAreaAbsRect.height <= 0)
+               {
+                       return;
+               }
                FloatRectangle cursorRect;
                int cursorPosition = GetCursorPosition();
                __pEdit->CalculateAbsoluteCursorBounds(cursorPosition, cursorRect);
index 2e4a809..0df25c1 100755 (executable)
@@ -4309,6 +4309,8 @@ _EditPresenter::SetText(const String& text)
 {
        result r = E_SUCCESS;
 
+       InitializeCopyPasteManager();
+
        int length = text.GetLength();
        if ((__pEdit->GetEditStyle() & EDIT_STYLE_FLEXIBLE) || (__pEdit->GetEditStyle() & EDIT_STYLE_VIEWER))
        {
@@ -5395,6 +5397,8 @@ _EditPresenter::OnFrameRestored(const _Frame& source)
 bool
 _EditPresenter::OnFocusLost(void)
 {
+       InitializeCopyPasteManager();
+
        if (__isAutoShrinkEnabled)
        {
                FloatRectangle intialWindowBounds = GetInitialBoundsF();