popup: fix content height problem when vertical align fill
authorJinYong Park <j4939.park@samsung.com>
Thu, 17 Nov 2016 10:10:39 +0000 (19:10 +0900)
committerTaehyub Kim <taehyub.kim@samsung.com>
Tue, 29 Nov 2016 12:32:36 +0000 (21:32 +0900)
Change-Id: I5071328642c718a8e336f518cad61b5676e46738
Signed-off-by: Jinyong Park <j4939.park@samsung.com>
src/lib/elc_popup.c

index 55bd04c2c533abd0f95b2605121a4ca21cdbb0d4..f0dbefff74d46541479050fa801a813f57192de2 100644 (file)
@@ -655,6 +655,11 @@ _elm_popup_elm_layout_sizing_eval(Eo *obj, Elm_Popup_Data *sd)
         elm_popup_align_get(obj, &horizontal, &vertical);
         evas_object_geometry_get(sd->parent, NULL, NULL, &w, &h);
 
+        //TIZEN_ONLY(20161117): fix content area height problem when vertical align fill is set
+        if (sd->max_sc_h != -1)
+          h = sd->max_sc_h;
+        //
+
         //TIZEN_ONLY(20160405): fix popup size problem in landscape mode
         str = edje_object_data_get(elm_layout_edje_get(sd->content_area), "content_area_width");
         if (str) w_content_area = (int)(atoi(str)