From c7337c6ae9939e8bca25abc72cd6084eeacaa946 Mon Sep 17 00:00:00 2001 From: DUBEYPRINCE KUMAR Date: Mon, 15 Oct 2012 09:10:05 +0000 Subject: [PATCH] From: DUBEYPRINCE KUMAR Subject: [E-devel] [PATCH][ELEMENTARY][BUG Fix] Current Reordering item is not resizing on genlist resize (e.g On roation) Please review the attached patch created to fix the current reordering item resizing issue. [ISSUE] Current genlist reordering item is not resizing on genlist resize (e.g. On rotation). Change Description: In _calc_job call back, the width of reordering item is corrected. SVN revision: 77992 --- ChangeLog | 4 ++++ NEWS | 1 + src/lib/elm_genlist.c | 6 ++++++ 3 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3d74bd1..b51513f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -614,3 +614,7 @@ 2012-10-15 Shinwoo Kim (kimcinoo) * Add access features to toolbar items + +2012-10-15 Prince Dubey Kumar + + * Fix genlist reorder mode item not being resized on genlist resize. diff --git a/NEWS b/NEWS index 3d6c0dd..d6b79e4 100644 --- a/NEWS +++ b/NEWS @@ -42,6 +42,7 @@ Fixes: * Fix possible invalid memory access in elm_access. * Fix diskselector bug with more than 4 items. * Fix conform widget to be part of focus chain. + * Fix genlist reorder mode item not being resized on genlist resize. Removals: diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 3cc7002..bdfd733 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -670,6 +670,12 @@ _calc_job(void *data) sd->minh = minh; evas_object_smart_callback_call(sd->pan_obj, "changed", NULL); elm_layout_sizing_eval(ELM_WIDGET_DATA(sd)->obj); + if (sd->reorder_it) + { + Elm_Gen_Item *it; + it = sd->reorder_it; + it->item->w = minw; + } if ((sd->anchor_item) && (sd->anchor_item->item->block) && (!sd->auto_scroll_enabled)) { -- 2.7.4