On Wed, 05 Aug 2009 20:07:26 +0200 N-Billy <n-bi...@gmx.de> said:

> On 08/05/2009 07:29 PM, Gustavo Sverzut Barbieri wrote:
> > On Wed, Aug 5, 2009 at 1:48 PM, N-Billy<n-bi...@gmx.de>  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.
> >
> >    
> 
> Hi Gustavo,
> 
> just found out that even this helps only for the second block. Testing 
> with items >100 shows this doesn't help fully.
> I just investigated when the coordinates it->y change from wrong to 
> correct and it was on idle/main loop. So I tried to force by rendering 
> and it helped at least a bit.
> 
> Something's wrong with the recalculation and maybe the 
> elm_smart_scroller_child_region_show should then be added as a job or 
> s.th. to be done asynchronously as well?
> 
> This bug is annoying but I still cannot find a proper solution :(

fixed. genlist happend to mis-calc at one point but on placing the items it
calcs them correctly. fixed. :)


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to