On Sat, 19 Sep 2009 20:04:31 +0400 victor <victor.scorp...@gmail.com> said:
> Hi guys > > On adding a gadcon client to EFM toolbar, its width used hardcoded value > regardless of gadcon client type. Here is patchset allowing to define > default (preferred) width for each type of EFM toolbar client. > - edje changed so a collections.group of .edc collection file can have > "prefer" value. > - on creating a new, unconfigured gadcon client, it uses preferred size > of underlying Evas object as its width. > - appropriate sizes applied to EFM modules > Hope you'll find it useful. hmm adding a preferred isze.. ok - i can see that, though i have used min and max sizes for this kind of thing before as these are not enforced sizes by just hints. but one thing.. your patch uses min ANd MAX sizes of something like 140x0 min and 140x0 max.. ie 0 height max (as a hint). a little odd... now here comes a problem. that is... preferred size may be determines on data that is swallowed, labels that are set by text and that change based on language. in one they may be 2 or 3x the length that another is at. i'm not totally sure this is the right solution. it needs something much more sophisticated. ie the gadget should create the object, populate it with "sample data" like set labels with real text and entries that may get text added - fill it with some sample text to make it "nice" then do a calculation on that. what is the minimum size if all text labels are limited to their current size (with all text showing) as a minmum. same with any swallows, lists etc. - some of thsi should be done as part of the edje in size calc - options for forcing all text parts to be min: 1 1; for the calculation purposes etc. etc. -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ras...@rasterman.com ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel