From: JongHeon Choi Date: Thu, 12 May 2016 01:15:26 +0000 (+0900) Subject: Hide unseted evas object to avoid focus and event callback problem X-Git-Tag: accepted/tizen/common/20160517.174136~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=28566f57239e172a146d7c633824f8af5989520e;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git Hide unseted evas object to avoid focus and event callback problem --- diff --git a/runtime/browser/native_window.cc b/runtime/browser/native_window.cc index da84fab..97fb15b 100755 --- a/runtime/browser/native_window.cc +++ b/runtime/browser/native_window.cc @@ -130,7 +130,10 @@ void NativeWindow::SetContent(Evas_Object* content) { // issue elm_object_part_content_unset() on it first. evas_object_show(content); - elm_object_part_content_unset(layout_, "elm.swallow.content"); + + // Hide unseted evas object to avoid focus and event callback problem. + evas_object_hide( + elm_object_part_content_unset(layout_, "elm.swallow.content")); elm_object_part_content_set(layout_, "elm.swallow.content", content); content_ = content;