Changed the postion of context menu to avaliable space
authorprathmesh.m <prathmesh.m@samsung.com>
Tue, 25 Jun 2013 06:59:03 +0000 (12:29 +0530)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Thu, 25 Jul 2013 06:21:21 +0000 (06:21 +0000)
[Title] Changed the display location of context menu in avaliable space
[Issue#] P130623-0376, P130619-0477
[Problem] Context menu is not visible fully when there is space
    on the screen
[Cause] Context menu is having style to create menu on top direction.
    So always the direction was top and the context menu was made scrollable
    and was displayed at the end
[Solution] Added mutliple direction. Now context menu will be open in
    the avaliable space

Change-Id: Id2515e94f15edd21cb4062804e43734743f4adbe

Source/WebKit2/UIProcess/tizen/WebContextMenuProxyTizen.cpp

index 4c90900..11cac6f 100755 (executable)
@@ -283,7 +283,7 @@ void WebContextMenuProxyTizen::showContextMenu(const WebCore::IntPoint& position
 
             elm_object_style_set(m_popup,"copypaste");
             elm_ctxpopup_horizontal_set(m_popup, EINA_TRUE);
-            elm_ctxpopup_direction_priority_set(m_popup, ELM_CTXPOPUP_DIRECTION_UP, ELM_CTXPOPUP_DIRECTION_UP, ELM_CTXPOPUP_DIRECTION_UP, ELM_CTXPOPUP_DIRECTION_UP);
+            elm_ctxpopup_direction_priority_set(m_popup, ELM_CTXPOPUP_DIRECTION_UP, ELM_CTXPOPUP_DIRECTION_LEFT, ELM_CTXPOPUP_DIRECTION_RIGHT, ELM_CTXPOPUP_DIRECTION_DOWN);
 
             m_pageClientImpl->changeContextMenuPosition(popupPosition);
         }