From b321d97f7da9bbad052b407a07edec8d08400ec1 Mon Sep 17 00:00:00 2001 From: Jihoon Chung Date: Fri, 18 Oct 2013 09:43:54 +0900 Subject: [PATCH] Reduce unnecessary resize [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 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wrt-client/window_data.cpp b/src/wrt-client/window_data.cpp index 50f9288..70aa785 100644 --- a/src/wrt-client/window_data.cpp +++ b/src/wrt-client/window_data.cpp @@ -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 -- 2.7.4