From: Jihoon Chung Date: Fri, 18 Oct 2013 01:35:29 +0000 (+0900) Subject: Reduce unnecessary resize X-Git-Tag: accepted/tizen/20131023.211208~6 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fframework%2Fweb%2Fwrt.git;a=commitdiff_plain;h=fd8d59af7a53334b32ecef3d5729699f7c416383 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 : Remove unnecessary evas_object_show API call After call API, resize is occurred one more time. [Verification] Launch application and checking first resize callbak result. [SCMRequest] N/A Change-Id: I2559db6337ce7feff376d7614b90b54c10a7fdf3 --- diff --git a/src/wrt-client/wrt-client.cpp b/src/wrt-client/wrt-client.cpp index 188bf04..e31c677 100644 --- a/src/wrt-client/wrt-client.cpp +++ b/src/wrt-client/wrt-client.cpp @@ -802,7 +802,6 @@ void WrtClient::setLayout(Evas_Object* webview) Assert(webview); m_windowData->setWebview(webview); evas_object_show(webview); - evas_object_show(m_windowData->getEvasObject(Layer::WINDOW)); } void WrtClient::unsetLayout(Evas_Object* webview)