elc_popup: Fix to make popup get proper size
authorJee-Yong Um <conr2d@gmail.com>
Fri, 20 Mar 2015 05:14:02 +0000 (14:14 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Fri, 20 Mar 2015 05:14:02 +0000 (14:14 +0900)
Summary:
There is a bug that popup can't get proper size when list is set as its content.
Because of unneccesary calling evas_object_show() in popup's overriding elm_obj_container_content_set(),
sizing eval doens't work correctly.
This patch fixes this bug.

Test Plan:
Execute 14th popup sample in "elementary_test popup".
(popup-center-title + list content + 1 button)
After applying this patch, popup shows correctly.

Reviewers: seoz, Hermet

Reviewed By: Hermet

Subscribers: Hermet, seoz

Differential Revision: https://phab.enlightenment.org/D2158

src/lib/elc_popup.c

index 0329e23..e0fdd9c 100644 (file)
@@ -1020,7 +1020,6 @@ _content_set(Evas_Object *obj,
 
         eo_do(sd->content_area, elm_obj_container_content_set
           (CONTENT_PART, content));
-        evas_object_show(content);
 
         evas_object_event_callback_add
           (content, EVAS_CALLBACK_DEL, _on_content_del, obj);