genlist: missing scrollto_bottom condition in item_scroll is fixed. 05/189405/3
authorSangHyeon Jade Lee <sh10233.lee@samsung.com>
Mon, 17 Sep 2018 10:48:12 +0000 (19:48 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Tue, 18 Sep 2018 10:53:51 +0000 (10:53 +0000)
ELM_GENLIST_ITEM_SCROLLTO_BOTTOM condition is considered in coordinate_calc,
but not considered in item_scroll which calls deferred for item calculation.
so put the proper condition for ELM_GENLIST_ITEM_SCROLLTO_BOTTOM in item scroll.

this is port of upstream patch D7035

Change-Id: I2b5606c9eee9a7dac31d5aa75598ac0a52f66387
Signed-off-by: SangHyeon Jade Lee <sh10233.lee@samsung.com>
src/lib/elementary/elm_genlist.c

index c045205..9134a37 100644 (file)
@@ -710,6 +710,10 @@ _item_scroll(Elm_Genlist_Data *sd)
         dy += ((it->item->h / 2) - (oh / 2));
         break;
 
+      case ELM_GENLIST_ITEM_SCROLLTO_BOTTOM:
+        dy += (it->item->h - oh);
+        break;
+
       case ELM_GENLIST_ITEM_SCROLLTO_IN:
       default:
         if ((sd->expanded_item) &&