gengrid: fix gengrid item's x, y index updating logic. 54/115554/3 submit/tizen/20170221.045909 submit/tizen/20170222.011740
authorHosang Kim <hosang12.kim@samsung.com>
Mon, 20 Feb 2017 08:21:19 +0000 (17:21 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Tue, 21 Feb 2017 03:17:06 +0000 (19:17 -0800)
when mirroring is enabled, gengrid's x, y index is updated  by wrong
value.

Change-Id: I754f675e22e0e81098a27cd6386b14b6b4db0aae

src/lib/elm_gengrid.c

index cab055d..110f6cd 100644 (file)
@@ -496,8 +496,6 @@ _item_show_region(void *data)
              miny = miny + ((cvh - (sd->item_height * row))
                   * sd->align_y);
              it_ypos = y * sd->item_height + miny;
-             it->x = x;
-             it->y = y;
           }
         else if (sd->item_width > 0)
           {
@@ -540,8 +538,6 @@ _item_show_region(void *data)
              minx = minx + ((cvw - (sd->item_width * col))
                   * sd->align_x);
              it_xpos = x * sd->item_width + minx;
-             it->x = x;
-             it->y = y;
           }
 
         switch (sd->scroll_to_type)