From: Hosang Kim Date: Mon, 2 May 2022 08:01:00 +0000 (+0900) Subject: ecore_evas: set ecore_evas height 0 when frame is enabled. X-Git-Tag: submit/tizen/20220711.043600~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F32%2F274632%2F3;p=platform%2Fupstream%2Fefl.git ecore_evas: set ecore_evas height 0 when frame is enabled. Change-Id: I3b2ec17c4f41bd81ed69b14a179de39a1eb60cbb --- diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c index 4d09fde39b..75ca5b7540 100644 --- a/src/lib/ecore_evas/ecore_evas.c +++ b/src/lib/ecore_evas/ecore_evas.c @@ -1427,13 +1427,21 @@ ecore_evas_managed_move(Ecore_Evas *ee, int x, int y) IFE; } +Eina_Bool _check_framespace_enabled(Ecore_Evas *ee) +{ + int fh = 0; + evas_output_framespace_get(ee->evas, NULL, NULL, NULL, &fh); + if (fh == 0) return EINA_FALSE; + return EINA_TRUE; +} + EAPI void ecore_evas_resize(Ecore_Evas *ee, int w, int h) { ECORE_EVAS_CHECK(ee); if (ee->prop.fullscreen) return; if (w < 1) w = 1; - if (h < 1) h = 1; + if (!_check_framespace_enabled(ee) && h < 1) h = 1; if (ECORE_EVAS_PORTRAIT(ee)) { IFC(ee, fn_resize) (ee, w, h); @@ -1452,7 +1460,7 @@ ecore_evas_move_resize(Ecore_Evas *ee, int x, int y, int w, int h) ECORE_EVAS_CHECK(ee); if (ee->prop.fullscreen) return; if (w < 1) w = 1; - if (h < 1) h = 1; + if (!_check_framespace_enabled(ee) && h < 1) h = 1; if (ECORE_EVAS_PORTRAIT(ee)) { IFC(ee, fn_move_resize) (ee, x, y, w, h);