From: Gustavo S. B. <bar...@pr...> - 2009-08-05 17:30:00
|
On Wed, Aug 5, 2009 at 1:48 PM, N-Billy<n-...@gm...> wrote: > now I finally found a way to fix this, though I'm sure it's rather a > workaround than a fix. > > the problem seems to be that evas has to render in order to correct the > coordinates of the buttons within the block. Thus, enforcing evas_render > and adjusting the scroller again works fine. > Could pls s.o. look into that issue? I assume this render operation > should be placed somewhere else, but I dunno where. Just calling it > before adjusting the scroller region doesn't work. > > > Index: src/lib/elm_genlist.c > =================================================================== > --- src/lib/elm_genlist.c (revision 41609) > +++ src/lib/elm_genlist.c (working copy) > @@ -1902,6 +1902,11 @@ > it->x + it->block->x, > it->y + it->block->y, > it->block->w, it->h); > + evas_render(evas_object_evas_get(it->wd->obj)); > + elm_smart_scroller_child_region_show(it->wd->scr, > + it->x + it->block->x, > + it->y + it->block->y, > + it->block->w, it->h); > } I have not followed this thread in depth or investigated the problem, but this is wrong. You should never force evas to render at any time, this is bad. -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: bar...@gm... Skype: gsbarbieri Mobile: +55 (19) 9225-2202 |