Reduce unnecessary resize
authorJihoon Chung <jihoon.chung@samsaung.com>
Fri, 18 Oct 2013 00:43:54 +0000 (09:43 +0900)
committerSoo-Hyun Choi <sh9.choi@samsung.com>
Wed, 23 Oct 2013 14:35:48 +0000 (23:35 +0900)
[Issue#]     N_SE-54888
[Problem]    Wrong touch position is passed to webkit.
             : Approximately 20~30 pixel is added to height position.
[Cause]      Webkit set view-port width and height when first resize callback is called.
             In problem case, resize callback is called with wrong width and height.
             As investigate, WRT too early set webkit to contents area of elementary before elementary finished resize.
[Solution]   Remove unnecessary resize behavior
             : Set default naviframe item style to "empty".
               As result of style set, one resize is removed (720, 1154 -> 720, 1780)
[Verification] Launch application and checking first resize callbak result.
[SCMRequest] N/A

Conflicts:
src/wrt-client/window_data.cpp

Change-Id: I3e6399b6a238e76d23b508ef8384cedc4bf0fabd

src/wrt-client/window_data.cpp

index 50f9288..70aa785 100644 (file)
@@ -299,12 +299,12 @@ Evas_Object* WindowData::createMainLayout(Evas_Object* parent)
     ADD_PROFILING_POINT("elm_naviframe_item_push", "start");
     Elm_Object_Item* naviIt =
         elm_naviframe_item_push(
-            parent, // Evas_Object* obj
-            NULL,   // const char* title_label
-            NULL,   // Evas_Object* prev_btn
-            NULL,   // Evas_Object* next_btn
-            obj,    // Evas_Object* content
-            NULL);  // const char* item_style
+            parent,   // Evas_Object* obj
+            NULL,     // const char* title_label
+            NULL,     // Evas_Object* prev_btn
+            NULL,     // Evas_Object* next_btn
+            obj,      // Evas_Object* content
+            "empty"); // const char* item_style
     ADD_PROFILING_POINT("elm_naviframe_item_push", "stop");
     elm_naviframe_item_title_visible_set(naviIt, EINA_FALSE);
     // FIXME!!!! This method has not yet landed in the tizen 3.0