Hi there,

You're very close.  I just tried this myself, and with a few minor tweaks
was able to get it working like you want.  Here's what I did:

1) Relative-sized columns in a table view don't affect the preferred width
of the table view, so I changed the column that contains the long text to be
"-1" instead of "3*".  This makes it be as wide as it needs to be to show
the text in that column.  NOTE: this can be a performance issue if the table
will have a large data set.

2) To keep the other two columns from disappearing when there's not enough
space (again, they don't affect preferred width), I added a
minimumPreferredWidth="300" to the table view.  You could have also just
given the columns absolute widths instead of relative widths.

Hope that helps,
-T

On Tue, Jun 1, 2010 at 9:19 AM, <[email protected]> wrote:

> Hi!
>
> I've got a small scrolling problem. Again... ;)
> First a picture.
>
> http://img-host.de/bild.php/38607,badscroll735MR.png
>
> What you see is a two column tablePane with two tableViews per row.
>
> What I need is the possibility to scroll each column separately in
> horizontal  direction. Because as you can see the text is too long.
>
> Well if I start boxing scrollpane into scrollpane I get a scrollbar for one
> columen or for two if I do the same thing for the other column. But then no
> content is shown.
>
> Scrolling the full table from top to bottom works very well. But not column
> by column from left to right.
>
> I posted the wtkx here:
> http://paste.ubuntuusers.de/398425/
>
> As you can see I'm currently trying almost all ways to place the ScrollPane
> but without success :(
>
>
> Hope somenone has a hint for me.
> Thx!
>
> Greetings!
> --
> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
>

Reply via email to