fixed bug (Too long time to display Copy-Paste options P130516-0267)
authorChulheon <ch.jeong47@samsung.com>
Mon, 20 May 2013 07:50:08 +0000 (16:50 +0900)
committerChulheon <ch.jeong47@samsung.com>
Mon, 20 May 2013 07:50:08 +0000 (16:50 +0900)
Change-Id: I3575d747810fe972633ecd815131d763986843da

src/ui/controls/FUiCtrl_EditCopyPasteManager.cpp

index 1e51ace..8c069b9 100644 (file)
@@ -1620,6 +1620,7 @@ _EditCopyPasteManager::CreateCopyPastePopup(void)
        float contextMenuArrowHeight = 0.0f;
        float handlerHeight = 0.0f;
        bool isPasswordStyle = false;
+       bool isClipped = false;
        if (__pEdit->GetEditStyle() & EDIT_STYLE_PASSWORD)
        {
                isPasswordStyle = true;
@@ -1646,13 +1647,14 @@ _EditCopyPasteManager::CreateCopyPastePopup(void)
        GET_SHAPE_CONFIG(CONTEXTMENU::GRID_BOTTOM_MARGIN, orientation, contextMenuBottomMargin);
        GET_SHAPE_CONFIG(CONTEXTMENU::ANCHOR_HEIGHT, orientation, contextMenuArrowHeight);
 
-       if ((__pEdit->GetTextLength() == 0 || __pEdit->GetEditStyle() & EDIT_STYLE_PASSWORD) && !__pEdit->IsClipped())
+       isClipped = __pEdit->IsClipped();
+       if ((__pEdit->GetTextLength() == 0 || __pEdit->GetEditStyle() & EDIT_STYLE_PASSWORD) && !isClipped)
        {
                return;
        }
 
        __contextMenuHeight = contextMenuHeight + contextMenuTopMargin + contextMenuBottomMargin + contextMenuArrowHeight;
-       if (__pEdit->IsClipped() == true && __pEdit->IsViewModeEnabled() == false && __pEdit->GetTextLength() > 0 && orientation == _CONTROL_ORIENTATION_PORTRAIT)
+       if (isClipped && __pEdit->IsViewModeEnabled() == false && __pEdit->GetTextLength() > 0 && orientation == _CONTROL_ORIENTATION_PORTRAIT)
        {
                __contextMenuHeight = __contextMenuHeight + contextMenuHeight;
        }
@@ -1881,7 +1883,7 @@ _EditCopyPasteManager::CreateCopyPastePopup(void)
                }
        }
 
-       if (__pEdit->IsClipped() == true)
+       if (isClipped)
        {
                if (!__pEdit->IsViewModeEnabled())
                {