Re: The big layout debate v1

Charles Goodwin <[email protected]> Sat, 03 Apr 2004 10:14:09 +0000
Newsgroups gmane.comp.java.xwt.core
Organization XWT Foundation
Message-ID <[email protected]>
On Fri, 2004-04-02 at 21:35 -0800, Adam Megacz wrote:
> Okay, here's the problem: there are multiple valid solutions to this
> specification:
> 
>   <box cols=3>
>       <box colspan=2 minwidth=40>
>       <box/>
>       <box/>
>       <box colspan=2 minwidth=40>
>   </box>
> 
> The columns here could be sized 20,20,20 or 10,30,10 -- both are valid
> solutions.  The former specification forced it to be 20,20,20.
> 
> So, Charlie, you must modify your specification to remove the ambiguity.

The minimum widths of the 3 columns here is 20, 20, 20.  The maximum
widths are not set, so the end size is dependent on the parent box.

"A box with colspan occupying several columns will never affect the
minimum or maximum width of a column any more than is necessary to
render the box according to it's minwidth and maxwidth properties."

That needs elaborating upon to remove the ambiguity.  I'll do v2.
-- 
- Charlie

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