Merge pull request #85 from JongHeonChoi/support_external_link
authorWonYoung Choi <wy80.choi@samsung.com>
Tue, 17 May 2016 04:33:09 +0000 (13:33 +0900)
committerWonYoung Choi <wy80.choi@samsung.com>
Tue, 17 May 2016 04:33:09 +0000 (13:33 +0900)
Support for external link for <content > tag in config.xml

runtime/browser/native_window.cc

index da84fab..97fb15b 100755 (executable)
@@ -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;