ecore_evas: set ecore_evas height 0 when frame is enabled. 32/274632/3
authorHosang Kim <hosang12.kim@samsung.com>
Mon, 2 May 2022 08:01:00 +0000 (17:01 +0900)
committerkim hosang <hosang12.kim@samsung.com>
Tue, 28 Jun 2022 02:23:35 +0000 (02:23 +0000)
Change-Id: I3b2ec17c4f41bd81ed69b14a179de39a1eb60cbb

src/lib/ecore_evas/ecore_evas.c

index 4d09fde..75ca5b7 100644 (file)
@@ -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);