item->x = cx;
item->y = cy;
- evas_object_geometry_get(item->wd->self, &ox, &oy, &vw, &vh);
+ evas_object_geometry_get(item->wd->pan_smart, &ox, &oy, &vw, &vh);
evas_output_viewport_get(evas_object_evas_get(item->wd->self),
&cvx, &cvy, &cvw, &cvh);
/* Preload rows/columns at each side of the Gengrid */
- cvx -= PRELOAD * item->wd->item_width;
- cvy -= PRELOAD * item->wd->item_height;
- cvw += 2 * PRELOAD * item->wd->item_width;
- cvh += 2 * PRELOAD * item->wd->item_height;
+ cvx = ox - PRELOAD * item->wd->item_width;
+ cvy = oy - PRELOAD * item->wd->item_height;
+ cvw = vw + 2 * PRELOAD * item->wd->item_width;
+ cvh = vh + 2 * PRELOAD * item->wd->item_height;
tch = ((vh/item->wd->item_height)*item->wd->item_height);
alignh = (vh - tch)*item->wd->align_y;
alignw = (vw - tcw)*item->wd->align_x;
}
else if ((item->wd->horizontal) && (item->wd->minw > vw))
- alignw = 0;
+ alignw = 0;
if ((!item->wd->horizontal) && (item->wd->minh < vh))
{
int rows;
Evas_Coord minw = 0, minh = 0, nmax = 0, cvw, cvh;
int count;
- evas_object_geometry_get(wd->self, NULL, NULL, &cvw, &cvh);
+ evas_object_geometry_get(wd->pan_smart, NULL, NULL, &cvw, &cvh);
if ((wd->horizontal) && (wd->item_height))
nmax = cvh / wd->item_height;
else if (wd->item_width)