fixed bug (Focus Display, ContextMenu hiding issue)
authorChulheon <ch.jeong47@samsung.com>
Wed, 27 Mar 2013 00:56:43 +0000 (09:56 +0900)
committerChulheon <ch.jeong47@samsung.com>
Wed, 27 Mar 2013 00:56:43 +0000 (09:56 +0900)
Change-Id: If91e4f32be4016afdac96a435ac9e8bf2965bbc4

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

index 05f0ebf..93e8448 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 162b9e7..f5248d6 100755 (executable)
@@ -4317,6 +4317,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))
        {
@@ -5403,6 +5405,8 @@ _EditPresenter::OnFrameRestored(const _Frame& source)
 bool
 _EditPresenter::OnFocusLost(void)
 {
+       InitializeCopyPasteManager();
+
        if (__isAutoShrinkEnabled)
        {
                FloatRectangle intialWindowBounds = GetInitialBoundsF();