Re: a step towards solving align

Adam Megacz <[email protected]> Sun, 04 Apr 2004 04:15:41 -0700
Newsgroups gmane.comp.java.xwt.core
Organization XWT
Message-ID <[email protected]>
Charles Goodwin <[email protected]> writes:
> 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

This will only happen when maxwidth has been reached for *all*
columns.  In other word, no column goes above maxwidth until all of
them have reached it.

> then, how does the layout account for child boxen that form a grid
> smaller than the parent?

You just add a shrink box between the parent and its children.

> to use a shrink-wrap-box to control the alignment.

Bingo.  In general this is the new philosophy with Nitrogen; "boxes
are cheap" so often the right way to solve a problem is to add a box
or two.

> 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.

Yep!

> The alignment of a box _never_ an had effect on the size of the columns.

Well, er, like I said, there was that confusing case about conflicting
aliginments.  I never got a serious answer on why the description we
had would specify the behavior that "made sense".

  - a