On Fri, 17 Jun 2011 18:26:28 +0900 Sohyun Kim <anna1014....@samsung.com> said:
genlist 6 test.. sitting here watching it flicker madly on resizes... :( still the same problem :( it doesn't need to re-realize. it needs to resize and re-calc min size with the new width and re-layout visible items. > I made a patch again with latest elm_genlist > > ONLY realized items and the items block will be resized horizontally using > changed_job. > In the function, it just recalculate item min size again. > After that, it is already realized and min size is calculated, so it is not > re-realized again and just block size is recalculated. > If it is deleted and re-realized again, loop will be > infinite.(deleted->realized->changed_job->deleted->realized->changed_job,,,, > ) > > Also, the unrealized items and the items block will be not resized > horizontally. > > Please review this patch again carefully. > If multiline entries can be added to genlist, it is good to use genlist > functions like editing, reordering and expendables with entries. > > Thanks, > > -----Original Message----- > From: Carsten Haitzler (The Rasterman) [mailto:ras...@rasterman.com] > Sent: Thursday, June 02, 2011 6:22 PM > To: Sohyun Kim > Cc: enlightenment-devel@lists.sourceforge.net > Subject: Re: [E-devel] [Patch] make elm_genlist contatin multiline entries > > On Wed, 01 Jun 2011 18:07:05 +0900 Sohyun Kim <anna1014....@samsung.com> > said: > > there is a downside of this patch.... resizes of the genlist horizontally > lead to horrible flickering as the items are deleted and re-realized AFTER a > redraw happened... this isn't too good :( btw - attached updated patch as i > had to merge changes after i put in other patches in upstream efl. :( > > > Hello, this is Sohyun. > > > > I made a patch for elm_genlist. > > Elm_genlist cannot contain multiline entries because the height of > > multiline entry is decided after calculating elm_genlist_item height. > > > > I added changed_size_hint event callback for elm_genlist icons. > > When an icon size is changed, elm_genlist recalculates the item height. > > In other words, if multiline entry height is decided, elm_genlist_item > > height is recalculated. > > > > Elm_genlist may have many multiline entries, so I added recalculating > > routine as a job. > > If many multiline entries are resized, the elm_genlist recalculating > > routine will be run once. > > > > You can check elementary_test > genlist 6 > > > > Thanks > > > > > -- > ------------- Codito, ergo sum - "I code, therefore I am" -------------- > The Rasterman (Carsten Haitzler) ras...@rasterman.com > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ras...@rasterman.com ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel