genlist: update focus_bg when min size is recalced 95/168695/1
authorSangHyeon Lee <sh10233.lee@samsung.com>
Tue, 30 Jan 2018 07:17:34 +0000 (16:17 +0900)
committerSangHyeon Lee <sh10233.lee@samsung.com>
Tue, 30 Jan 2018 07:17:37 +0000 (16:17 +0900)
Change-Id: I603d6c7ef8eaa63d85806e410c4a02f8d475f739
Signed-off-by: SangHyeon Lee <sh10233.lee@samsung.com>
src/lib/elementary_tizen/elm_genlist.c

index 72526f9..da795f7 100644 (file)
@@ -5379,6 +5379,7 @@ static void
 _item_min_calc(Elm_Gen_Item *it)
 {
    Elm_Genlist_Data *sd = GL_IT(it)->wsd;
+   ELM_WIDGET_DATA_GET_OR_RETURN(WIDGET(it), wd);
    Evas_Coord mw = 0, mh = 0;
    Evas_Coord vw = 0;
 
@@ -5434,6 +5435,8 @@ _item_min_calc(Elm_Gen_Item *it)
           evas_object_resize(VIEW(it), GL_IT(it)->w, GL_IT(it)->h);
      }
    //
+   if (wd->scroll_item_align_enable && (sd->aligned_item == it))
+     _focus_bg_show(sd->aligned_item);
 }
 
 static void