popup: fix "popup didn't show content at first time" 18/76318/4
authorJinyong Park <j4939.park@samsung.com>
Thu, 23 Jun 2016 10:34:25 +0000 (19:34 +0900)
committerJin Yong Park <j4939.park@samsung.com>
Fri, 24 Jun 2016 05:17:05 +0000 (22:17 -0700)
Change-Id: Id12f9a8ec94748b56f23b38899c2145a76a13531
Signed-off-by: Jinyong Park <j4939.park@samsung.com>
src/lib/elc_popup.c

index c00e59d..d8e52a9 100644 (file)
@@ -1819,9 +1819,14 @@ _elm_popup_evas_object_smart_add(Eo *obj, Elm_Popup_Data *priv)
          elm_layout_theme_set(priv->content_area, "popup", "content", style)))
      CRI("Failed to set layout!");
    else
+   //TIZEN_ONLY(2016-06-23): fix popup align and size problem
+   //  evas_object_event_callback_add
+   //     (priv->content_area, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
+   //      _size_hints_changed_cb, priv->main_layout);
      evas_object_event_callback_add
         (priv->content_area, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
-         _size_hints_changed_cb, priv->main_layout);
+         _size_hints_changed_cb, obj);
+   //
    /* END */
 
    priv->content_text_wrap_type = ELM_WRAP_MIXED;