path: root/legacy/elementary/src/bin/test_gengrid.c
diff options
authorDave Andreoli <dave@gurumeditation.it>2016-01-17 15:11:29 +0100
committerDave Andreoli <dave@gurumeditation.it>2016-01-17 15:11:29 +0100
commit16b16b71282ee6b0115c5db3e714ec934249e771 (patch)
tree645f74e24323f56204733fd366b8df1406fac0ff /legacy/elementary/src/bin/test_gengrid.c
parentconfig: Correct defaults in upgrade of popup conf (diff)
Gengrid: improve item_region_show code
There is no need to recalc row and col position of the item, they are already stored in the item struct. The old implementation was calculating wrong values and also was storing this wrong values in it->x and it->y, resulting in wrong results for the elm_gengrid_item_pos_get() function. so, at the end, this is a @fix for the pos_get() function. Also changed a bit the test to let the gengrid fill the window and thus testing behaviour on col/row changes. I didn't find any regression in all the gengrid tests after this, let me know if it broke something for you.
Diffstat (limited to 'legacy/elementary/src/bin/test_gengrid.c')
1 files changed, 1 insertions, 0 deletions
diff --git a/legacy/elementary/src/bin/test_gengrid.c b/legacy/elementary/src/bin/test_gengrid.c
index 6ba3622bca..bd74e5b8dd 100644
--- a/legacy/elementary/src/bin/test_gengrid.c
+++ b/legacy/elementary/src/bin/test_gengrid.c
@@ -1306,6 +1306,7 @@ test_gengrid4(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
elm_gengrid_item_show(ti[2579].item, sd->scrollto);
evas_object_size_hint_weight_set(grid, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_align_set(grid, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_min_set(grid, 600, 400);
sd->grid = grid;