From: Foster T. B. <fbr...@ad...> - 2006-09-26 03:07:41
|
[ On Behalf of Sean Parent ] On Sep 25, 2006, at 6:16 PM, Ralph Thomas wrote: > Hi asl-devel, > > The diagram here: > http://opensource.adobe.com/ > structadobe_1_1layout__attributes__t_1_1slice__t.html > > makes it seem like outsets get factored into a parent's size, or > that they could be used to make space between views (not using the > spacing array in the parent). > > I think that they actually just get collected up so that the parent > view's outsets have the child's outsets factored in. Is this correct? > If the outsets collide with a visual element then the code asserts (once we have some kind of warning mechanism it will issue a warning. If there is no frame on the edge of a container the outsets will push into the parent growing the parent outset. This makes sure that if you have something like: panel() { button(name: "Hello"); } Then the panel will grow to be large enough to enclose the button (without screwing up other spacing) - so you don't get any pixel junk if you hide the panel. Sean > > Ralph > > -- > "i have a dream and it's called a crossbar switch/what this will mean > is no big data glitch" > |