Magnifer not moving in case of piker input
authorprathmesh.m <prathmesh.m@samsung.com>
Tue, 2 Jul 2013 11:46:59 +0000 (17:16 +0530)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Wed, 3 Jul 2013 06:48:49 +0000 (06:48 +0000)
[Title] Magnifer not moving in case of picker
[Issue#] N_SE-44251
[Problem] In Picker input box we do not set carret. So
    not reqiuired that magnifier to be present inside the
    in input box only
[Cause] No check present to ignore the picket input box
[Solution] Added check to move magnifier outside input
    picker box

Change-Id: I21feeef8027dd039b514a8f05b9dba07e4a119fb

Source/WebKit2/UIProcess/API/efl/tizen/TextSelection.cpp [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index db92aab..c794f9a
@@ -522,7 +522,21 @@ void TextSelection::textSelectionMove(const IntPoint& point, bool isStartedTextS
 
     WebCore::IntPoint viewPoint;
     EditorState editorState = m_viewImpl->page()->editorState();
+    bool isInEditablePicker = false;
+
+#if ENABLE(TIZEN_INPUT_TAG_EXTENSION)
     if (editorState.isContentEditable) {
+        if (editorState.inputMethodHints == "date"
+            || editorState.inputMethodHints == "datetime"
+            || editorState.inputMethodHints == "datetime-local"
+            || editorState.inputMethodHints == "month"
+            || editorState.inputMethodHints == "time"
+            || editorState.inputMethodHints == "week")
+            isInEditablePicker = true;
+    }
+#endif
+
+    if (editorState.isContentEditable && !isInEditablePicker) {
         IntRect mapRect = m_viewImpl->transformToScene().mapRect(editorState.editorRect);
         IntPoint updatedPoint = point;
         bool scrolledY = false;