Re: a step towards solving align

Charles Goodwin <[email protected]> Wed, 07 Apr 2004 05:05:01 +0000
Newsgroups gmane.comp.java.xwt.core
Organization XWT Foundation
Message-ID <[email protected]>
On Wed, 2004-04-07 at 00:25 +0000, Charles Goodwin wrote:
> Did we ever reach a decision on whether align was a per-child or a
> by-parent definition?
> 
> I'm a per-child advocate personally.

Adam, is it me or did you actually do this with unpacked boxes (probably
accidentally) from the start?

Lines 365/366 of latest Box.java:

child_x = child.ax + (child.test(ALIGN_RIGHT) ?
                       gap_x : !child.test(ALIGN_LEFT) ? gap_x / 2 : 0);
child_y = child.ay + (child.test(ALIGN_BOTTOM) ?
                       gap_y : !child.test(ALIGN_TOP) ? gap_y / 2 : 0);

-- 
- Charlie

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