From 4e3e3b936b4a3e73f150c7733ec2b3ac8b661951 Mon Sep 17 00:00:00 2001 From: Hosang Kim Date: Mon, 2 May 2022 17:01:00 +0900 Subject: [PATCH] ecore_evas: set ecore_evas height 0 when frame is enabled. Change-Id: I3b2ec17c4f41bd81ed69b14a179de39a1eb60cbb --- src/lib/ecore_evas/ecore_evas.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c index 4d09fde..75ca5b7 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); -- 2.7.4