forked from enlightenment/efl
Fix T1525 New Append/Prepend Gengrid Item cannot be seen in viewport
Reviewers: seoz, raster Differential Revision: https://phab.enlightenment.org/D1392
This commit is contained in:
parent
17f411f6be
commit
f2cf41dc1c
|
@ -738,6 +738,7 @@ _prepend_bt_clicked(void *data, Evas_Object *obj EINA_UNUSED, void *event_info E
|
||||||
id->mode = 0;
|
id->mode = 0;
|
||||||
id->path = eina_stringshare_add(buf);
|
id->path = eina_stringshare_add(buf);
|
||||||
id->item = elm_gengrid_item_prepend(grid, gic, id, grid_sel, NULL);
|
id->item = elm_gengrid_item_prepend(grid, gic, id, grid_sel, NULL);
|
||||||
|
if (id->item) elm_gengrid_item_show(id->item, ELM_GENGRID_ITEM_SCROLLTO_IN);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -753,6 +754,7 @@ _append_bt_clicked(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EI
|
||||||
id->mode = 0;
|
id->mode = 0;
|
||||||
id->path = eina_stringshare_add(buf);
|
id->path = eina_stringshare_add(buf);
|
||||||
id->item = elm_gengrid_item_append(grid, gic, id, grid_sel, NULL);
|
id->item = elm_gengrid_item_append(grid, gic, id, grid_sel, NULL);
|
||||||
|
if (id->item) elm_gengrid_item_show(id->item, ELM_GENGRID_ITEM_SCROLLTO_IN);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue