No answers? I want to know about this issue as well :) It's always confusing.
Thanks. Daniel Juyung Seo (SeoZ) On Wed, Jul 13, 2011 at 7:24 AM, Gustavo Lima Chaves <gl...@profusion.mobi> wrote: > Hi, folks. > > I'm writing to gather, specially from Raster and the more ancient Evas > hackers, what to expect/document about Evas' size hints, WHEN > COMBINED. > > We have some common sense ground here, obviously, like: min/max sizes > must always be respected. > > But if we start to mix, for a given container object, member objects > having min, max, align, padding and weight hints, things start not to > be so straightforward WRT defining expected/suggested behavior for > people implementing objects taking hints for account. > > Attached is a simple app. with a *horizontal* box (with geometry > marked in red) and a child blue rectangle. I've setuped its size hints > as [min=10,10, max=100,100, align=0.5, padding=30,0,0,0, > weight=0.0,0.0]. > > It has commands to set hardcoded sizes on the box ('1', '2' and '3'), > because it will resize itself after packing objects into it. There > also a command to toggle weight on/off on that rectangle. > > For the 0-weight cases, it layouts as expected. With 1.0 weight, come > the doubts: > > - shouldn't case '1' with weight 1.0 be equal to the case with weight > 0.0? > > - what to do on case '5', here (weight 1.0). Should the size enforced > on the child match its min. one, also letting it flow out of the > parent's bounds because of the padding? > > Case '3' for 1.0 weight is OK, because the horizontal box won't > "listen" to y components of weights on children. > > So, please, help me sort out what should be the behavior on those two > cases, so that I can document properly the issue on *combination of > one or more hints*. > > -- > Gustavo Lima Chaves > Computer Engineer @ ProFUSION Embedded Systems > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel