pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Ziltener <zi...@lyrion.ch>
Subject Re: A split pane inside any other pane seems not to work?
Date Sat, 05 Mar 2011 16:34:58 GMT
Yes, that works, thank you.

2011/3/5 Chris Bartlett <cbartlett.x@gmail.com>

> This has come up on the mailing list before, but I can't remember the
> details off the top of my head.
>
> Daniel,
>
> I think you need to provide a preferredWidth & preferredHeight or perhaps
> minimumWidth & minimumHeight.
>
> Anyway, this works for me.
>
> <Window title="Split Pane - Preferred Size" maximized="true" xmlns:bxml="
> http://pivot.apache.org/bxml" xmlns="org.apache.pivot.wtk">
> <BoxPane styles="{padding:8}">
> <SplitPane splitRatio="0.5" preferredWidth="400" preferredHeight="400">
> <left>
> <Border title="Left" />
> </left>
> <right>
> <Border title="Right" />
> </right>
> </SplitPane>
> </BoxPane>
> </Window>
>
> Chris
>
> On 5 March 2011 22:42, Daniel Ziltener <zilti@lyrion.ch> wrote:
>
>> I'm trying to put a SplitPane inside a BoxPane, but this doesn't work. I
>> tried literally everything, from wrapping it inside another container before
>> putting it inside the BoxPane over manually setting the size but nothing
>> works. It seems like it gets a height of 0, even when manually setting it to
>> another value. It only seems to work when put in the Window tag as the only
>> component.
>> What am I doing wrong?
>>
>
>

Mime
View raw message