On Fri, May 29, 2009 at 12:42 AM, blc187 <[email protected]> wrote:
> is there an easy way to keep a container at a specific aspect ratio?
>
> i have an hDividedBox but i want the vbox on the left side to always be twice
> as high as it is wide. how can i keep a container at this aspect ratio while
> having the child on the right in the hDividedBox fill the rest of the space?
I don't know if this works:
<HDividedBox>
<Child1 id="child1" width="{child1.height / 2}" />
<Child2 id="child2" width="100%" />
</>
If that doesn't do the trick, you'll have to subclass HDividedBox and
implement updateDisplayList according to these rules.
Manish