[P170104-01476] Scrolling on top in half mode 66/108466/1
authorRahul Dadhich <r.dadhich@samsung.com>
Wed, 4 Jan 2017 11:00:52 +0000 (16:30 +0530)
committerRahul Dadhich <r.dadhich@samsung.com>
Wed, 4 Jan 2017 11:07:08 +0000 (03:07 -0800)
Change-Id: I3a543552231d22daf3b1041c07d49f49e4b61690
Signed-off-by: Rahul Dadhich <r.dadhich@samsung.com>
src/gallery-efl.c

index 846cd64..c2ecf55 100644 (file)
@@ -632,6 +632,15 @@ static void _ge_message(ui_gadget_h ug, app_control_h msg,
 
                                elm_gengrid_realized_items_update(ugd->thumbs_d->gengrid);
 
+                               if (!ugd->nocontents) {
+                                       Elm_Object_Item *it = elm_gengrid_first_item_get(ugd->thumbs_d->gengrid);
+                                       if (it) {
+                                               elm_gengrid_item_show(it, ELM_GENGRID_ITEM_SCROLLTO_TOP);
+                                       } else {
+                                               elm_scroller_region_bring_in(ugd->thumbs_d->gengrid, 0, 0, 0, 0);
+                                       }
+                               }
+
                                elm_naviframe_item_title_enabled_set(ugd->nf_it,
                                                                                                         EINA_FALSE,
                                                                                                         EINA_FALSE);