pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Bartlett <cbartlet...@gmail.com>
Subject Re: A split pane inside any other pane seems not to work?
Date Sat, 05 Mar 2011 16:16:01 GMT
This has come up on the mailing list before, but I can't remember the
details off the top of my head.


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">
<Border title="Left" />
<Border title="Right" />


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?

View raw message