From: DUBEYPRINCE KUMAR <prince.dubey@samsung.com>
authorDUBEYPRINCE KUMAR <prince.dubey@samsung.com>
Mon, 15 Oct 2012 09:10:05 +0000 (09:10 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Mon, 15 Oct 2012 09:10:05 +0000 (09:10 +0000)
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
NEWS
src/lib/elm_genlist.c

index 3d74bd1..b51513f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 2012-10-15  Shinwoo Kim (kimcinoo)
 
         * Add access features to toolbar items
+
+2012-10-15  Prince Dubey Kumar <prince.dubey@samsung.com>
+
+        * Fix genlist reorder mode item not being resized on genlist resize.
diff --git a/NEWS b/NEWS
index 3d6c0dd..d6b79e4 100644 (file)
--- 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:
 
index 3cc7002..bdfd733 100644 (file)
@@ -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))
           {