popup: fix content height problem when vertical align fill 17/162117/3
authorJinYong Park <j4939.park@samsung.com>
Wed, 29 Nov 2017 06:53:56 +0000 (15:53 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Wed, 3 Jan 2018 07:13:52 +0000 (07:13 +0000)
@tizen_fix

original patch : https://review.tizen.org/gerrit/#/c/98386/

Change-Id: Ib884d5a08d61c27555111ec72915fbc51d77c4c6
Signed-off-by: JinYong Park <j4939.park@samsung.com>
src/lib/elementary/elc_popup.c

index ad0cc9e..28c3e07 100644 (file)
@@ -720,6 +720,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;
+        /* END */
+
         if (EINA_DBL_EQ(horizontal, ELM_NOTIFY_ALIGN_FILL))
           minw = w;
         if (EINA_DBL_EQ(vertical, ELM_NOTIFY_ALIGN_FILL))