forked from enlightenment/efl
elementary/gengrid - fixed a bug by jh0506.yun@samsung.com
Hello. I attached the modified patch about calc_job problem. When I tested gengrid, sometimes gengrid renderd two times in different shape in a moment. So I checked gengrid code, I found cause in calc_job function. calc_job added to ecore job after elm_gengrid_item_size_set and elm_gengrid_item_append(,prepend,insert_before,insert_after) and etc. Sometimes pan_smart's cvw and cvh is 0 at this time. I think, No need to calc_job when pan_smart's cvw and cvh is 0. Please check about this patch. Thanks. SVN revision: 57491
This commit is contained in:
parent
51e1a9bba0
commit
f522b7385c
|
@ -1281,6 +1281,8 @@ _calc_job(void *data)
|
|||
int count;
|
||||
|
||||
evas_object_geometry_get(wd->pan_smart, NULL, NULL, &cvw, &cvh);
|
||||
if ((cvw != 0) || (cvh != 0))
|
||||
{
|
||||
if ((wd->horizontal) && (wd->item_height > 0))
|
||||
nmax = cvh / wd->item_height;
|
||||
else if (wd->item_width > 0)
|
||||
|
@ -1311,6 +1313,7 @@ _calc_job(void *data)
|
|||
wd->nmax = nmax;
|
||||
wd->calc_job = NULL;
|
||||
evas_object_smart_changed(wd->pan_smart);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue