pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk Möbius <dmoeb...@scoop-gmbh.de>
Subject Re: ScrollPane with TreeView in BoxPane
Date Thu, 06 May 2010 07:05:36 GMT
Hello Weisswurst,

You cannot use the outer BoxPane in this case here. The BoxPane always  
grows as large as its enclosing component want to be. That is, the  
ScrollPane doesn't get constrained to the height of the window.

Instead you must use a TablePane, where you can declare a row to be as  
high as the container's remaining space, using height="1*". I rewrote  
your pastebin example and verified it works:

<Window maximized="true"
         xmlns:renderer.xml ="de.v7.utils"
         <TablePane wtkx:id="tablePane" styles="{padding:4}">
                 <TablePane.Column width="1*"/>
                 <TablePane.Row height="-1">
                     <FlowPane wtkx:id="flowPane" styles="{padding:4}">
                         <Label text="Id:"/>
                         <TextInput wtkx:id="searchTerm"/>
                         <PushButton wtkx:id="pushButton"  
                 <TablePane.Row height="1*">
                     <ScrollPane verticalScrollBarPolicy="fill_to_capacity">
                             <TreeView wtkx:id="treeView">


weisswurst@gmx.net wrote:

> The last changes didn't help too.
> I have pasted the complete wtkx here:
> http://paste.ubuntuusers.de/398218/
> And a screenshot here:
> http://www.img-host.de/bild.php/37098,tvAHQQ4.png
> I'm pretty shure it has something to do with the fact, that the tree fits
> perfectly well into the window if it's not expanded.
> Do I have to use values for preferred width and height in TreeView  
> and Window  and ScrollPane to have this work?
> Thank you very much for your help!
> --
> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01

Dirk Möbius

Am Kielshof 29
D-51105 Köln
Fon   +49 221 801916-0
Fax   +49 221 801916-17
Mobil +49 170 7363035
Sitz der Gesellschaft: Köln
Handelsregister: Köln
Handelsregisternummer: HRB 36623
Dr. Oleg Balovnev
Frank Heinen
Dr. Wolfgang Reddig
Roland Scheel

View raw message