Reduce unnecessary resize
authorJihoon Chung <jihoon.chung@samsaung.com>
Fri, 18 Oct 2013 01:35:29 +0000 (10:35 +0900)
committerSoo-Hyun Choi <sh9.choi@samsung.com>
Wed, 23 Oct 2013 14:35:25 +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
             : 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

src/wrt-client/wrt-client.cpp

index 188bf04..e31c677 100644 (file)
@@ -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)