Giving out slack - discussing align

Charles Goodwin <[email protected]> Thu, 25 Mar 2004 00:02:03 +0000
Newsgroups gmane.comp.java.xwt.core
Organization XWT Foundation
Message-ID <[email protected]>
Attached is a simple test.  If you run it against a fixed core (ie mine
or tupshin's) then you'll see the top two boxes are aligned as shown in
this diagram (| - parent edge, r - red box, w - white box):

|r    w    |

Given that the parents align is center (the default), shouldn't it be:

|  r    w  |

This is also one of the reasons I don't overly like the parent defining
the alignment of it's children.  If you edit the attached test and
remove the latter two boxes, you'll get the following:

|    rw    |

It's much easier to create the current behaviour from child alignment
than it is to adjust child alignment in the current core without
affecting siblings.

If a boxes alignment affected itself against it's parent, you could
easily give the current behaviour (as evidenced in the examples for bug
503) by shrink-wrapping the contents (ie in a <box shrink="true" />) and
adjusting the alignment of the wrapping box.
-- 
- Charlie

Charles Goodwin <[email protected]>
Online @ http://www.charlietech.com

_______________________________________________
core mailing list
[email protected]
http://lists.xwt.org/listinfo/core
test.t (application/x-troff, 295 B) - not displayed