evas table - use geom set instead of move+resize for fewer oe calls
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 20 Aug 2019 08:43:07 +0000 (09:43 +0100)
committerWonki Kim <wonki_.kim@samsung.com>
Fri, 23 Aug 2019 08:53:47 +0000 (17:53 +0900)
src/lib/evas/canvas/evas_object_table.c

index 41f4617..4612cd9 100644 (file)
@@ -518,14 +518,9 @@ _evas_object_table_calculate_layout_homogeneous(Evas_Object *o, Evas_Table_Data
           }
 
         if (priv->is_mirrored)
-          {
-             evas_object_move(opt->obj, x + w - (cx - x + cw), cy);
-          }
+          evas_object_geometry_set(opt->obj, x + w - (cx - x + cw), cy, cw, ch);
         else
-          {
-             evas_object_move(child, cx, cy);
-          }
-        evas_object_resize(child, cw, ch);
+          evas_object_geometry_set(child, cx, cy, cw, ch);
      }
 }
 
@@ -859,14 +854,9 @@ _evas_object_table_calculate_layout_regular(Evas_Object *o, Evas_Table_Data *pri
         _evas_object_table_calculate_cell(opt, &cx, &cy, &cw, &ch);
 
         if (priv->is_mirrored)
-          {
-             evas_object_move(opt->obj, x + w + 2 * (0.5 - priv->align.h) * (totw - w) - (cx - x + cw), cy);
-          }
+          evas_object_geometry_set(opt->obj, x + w + 2 * (0.5 - priv->align.h) * (totw - w) - (cx - x + cw), cy, cw, ch);
         else
-          {
-             evas_object_move(child, cx, cy);
-          }
-        evas_object_resize(child, cw, ch);
+          evas_object_geometry_set(child, cx, cy, cw, ch);
      }
 
  end:
@@ -978,6 +968,7 @@ _evas_table_efl_canvas_group_group_calculate(Eo *o, Evas_Table_Data *priv)
      _evas_object_table_smart_calculate_regular(o, priv);
 
    evas_event_thaw(e);
+   evas_event_thaw_eval(e);
 }
 
 EAPI Evas_Object *