evas_object_table: fix not to use hint_fill on elm_table 65/236365/1
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Tue, 16 Jun 2020 11:40:59 +0000 (20:40 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Tue, 16 Jun 2020 11:44:11 +0000 (20:44 +0900)
Summary:
The hint_fill logic in evas_object_table was designed to be used for
Efl.Ui.Table not for elm_table.
Since Efl.Ui.Table does not use evas_object_table logic, hint_fill logic
in evas_object_table is removed.

Reviewers: YOhoho

Reviewed By: YOhoho

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11982

Change-Id: Ide4fe092d9eeee4120596bae3dc3cb2eab2a1da5

src/lib/evas/canvas/evas_object_table.c

index 4612cd9..93de8ab 100644 (file)
@@ -328,7 +328,6 @@ _evas_object_table_calculate_hints_homogeneous(Evas_Object *o, Evas_Table_Data *
    Evas_Object_Table_Option *opt;
    Evas_Coord minw, minh, o_minw, o_minh;
    Eina_Bool expand_h, expand_v;
-   Eina_Bool fill_h, fill_v;
 
    o_minw = 0;
    o_minh = 0;
@@ -349,8 +348,6 @@ _evas_object_table_calculate_hints_homogeneous(Evas_Object *o, Evas_Table_Data *
            (child, &opt->pad.l, &opt->pad.r, &opt->pad.t, &opt->pad.b);
         evas_object_size_hint_align_get(child, &opt->align.h, &opt->align.v);
         evas_object_size_hint_weight_get(child, &weightw, &weighth);
-        //only for Efl.Ui.Table
-        efl_gfx_hint_fill_get(child, &fill_h, &fill_v);
 
         child_minw = opt->min.w + opt->pad.l + opt->pad.r;
         child_minh = opt->min.h + opt->pad.t + opt->pad.b;
@@ -376,13 +373,13 @@ _evas_object_table_calculate_hints_homogeneous(Evas_Object *o, Evas_Table_Data *
              expand_v = 1;
           }
 
-        opt->fill_h = fill_h;
+        opt->fill_h = 0;
         if (opt->align.h < 0.0)
           {
              opt->align.h = 0.5;
              opt->fill_h = 1;
           }
-        opt->fill_v = fill_v;
+        opt->fill_v = 0;
         if (opt->align.v < 0.0)
           {
              opt->align.v = 0.5;