Evas_Coord w,
Evas_Coord h __UNUSED__)
{
+ Evas_Coord ow = 0, oh = 0, vw = 0;
+
ELM_GENLIST_PAN_DATA_GET(obj, psd);
+ evas_object_geometry_get(obj, NULL, NULL, &ow, &oh);
+ if ((ow == w) && (oh == h)) return;
+
+ psd->wsd->s_iface->content_viewport_size_get(ELM_WIDGET_DATA(psd->wsd)->obj,
+ &vw, NULL);
if (psd->wsd->mode == ELM_LIST_COMPRESS &&
- psd->wsd->prev_viewport_w != w)
- {
- psd->wsd->size_changed = EINA_TRUE;
- }
- psd->wsd->prev_viewport_w = w;
+ vw != psd->wsd->prev_viewport_w)
+ psd->wsd->size_changed = EINA_TRUE;
+ if (vw != 0) psd->wsd->prev_viewport_w = vw;
psd->wsd->pan_changed = EINA_TRUE;
if (psd->wsd->calc_job) ecore_job_del(psd->wsd->calc_job);