From a24ea0a5faca812130aeed327153ccea76ad95b8 Mon Sep 17 00:00:00 2001 From: JinYong Park Date: Tue, 28 Nov 2017 14:55:27 +0900 Subject: [PATCH] popup: add outside_pad for portrait mode @tizen_fix original patch : https://review.tizen.org/gerrit/#/c/76462/ Change-Id: I632cb8c52a09e3d420c724c382d989028db871b3 Signed-off-by: JinYong Park --- src/lib/elementary/elc_popup.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/lib/elementary/elc_popup.c b/src/lib/elementary/elc_popup.c index 358f01c..5a236cb 100644 --- a/src/lib/elementary/elc_popup.c +++ b/src/lib/elementary/elc_popup.c @@ -197,6 +197,10 @@ _scroller_size_calc(Evas_Object *obj) Evas_Coord h_title = 0; Evas_Coord h_action_area = 0; const char *action_area_height; + /* TIZEN_ONLY(20160624): add outside padding */ + const char *outside_pad; + Evas_Coord h_pad = 0; + /* END */ /* TIZEN_ONLY(20170202): fix popup max height */ Evas_Coord y, wy; /* END */ @@ -234,6 +238,15 @@ _scroller_size_calc(Evas_Object *obj) / edje_object_base_scale_get(elm_layout_edje_get(sd->action_area)); } + /* TIZEN_ONLY(20160624): add out side padding */ + outside_pad = edje_object_data_get(elm_layout_edje_get(sd->main_layout), "popup_outside_pad"); + + if (outside_pad) h_pad = (int)(atoi(outside_pad) + * elm_config_scale_get() + * elm_object_scale_get(obj) + / edje_object_base_scale_get(elm_layout_edje_get(sd->main_layout))); + /* END */ + /* TIZEN_ONLY(20160623):Apply popup compress mode UX sd->max_sc_h = h - (h_title + h_action_area); */ @@ -241,7 +254,7 @@ _scroller_size_calc(Evas_Object *obj) ((wd->orient_mode == 90) || (wd->orient_mode == 270))) sd->max_sc_h = h - h_action_area; else - sd->max_sc_h = h - (h_title + h_action_area); + sd->max_sc_h = h - (h_title + h_action_area + h_pad); /* END */ } -- 2.7.4