Re: a step towards solving align

Charles Goodwin <[email protected]> Sun, 04 Apr 2004 10:39:39 +0000
Newsgroups gmane.comp.java.xwt.core
Organization XWT Foundation
Message-ID <[email protected]>
On Sat, 2004-04-03 at 20:55 -0800, Adam Megacz wrote:
> I just realized that with the current formulation of the grid rules,
> we can promise that the sum of the columns of a parent are always *at
> least* as wide as the parent itself.  Sometimes they're larger (due to
> minwidths), but never smaller.

Hmm.  I'm unsure about this.  I don't think it is right to hand out
slack to columns/rows whose maxwidth/maxheight have been reached.  But
then, how does the layout account for child boxen that form a grid
smaller than the parent?

I said 'align centrally' which leaves the developer having to either
introduce sibling boxes (and extra rows/columns) to take up the slack of
to use a shrink-wrap-box to control the alignment.

I guess if we just make it mandatory that the slack is given out, then
we just reduce it the problem to the developer adding sibling boxes to
take up the slack or putting shrink=true to the box and aligning.

Sounds good to me.

> This means that the alignment of a box has no effect on the
> alignment/size of the columns.  So we can do alignment as a completely
> separate step *after* sizing has finished!

The alignment of a box _never_ an had effect on the size of the columns.
Doing alignment after column/row sizing is the way it is current
implemented in the non-simplex core; as you implemented it.
-- 
- Charlie

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