ScrollPane.prefViewportWidth == computed size?

2013-06-03 Thread Werner Lehmann
Hi, I am trying to show a ScrollPane resized so that the full width of its content is visible: no horizontal scrolling, no clipping, no content resizing. Only vertical scrolling if necessary. Seems as if prefViewportWidth should do the trick. Since I don't want to hardcode some width I am bi

Re: ScrollPane.prefViewportWidth == computed size?

2013-06-03 Thread Richard Bair
> Problem: this works only if the content prefWidth is set explicitly. If it is > -1, prefViewportWidth is also -1 (because it is bound) and that computes a > value too small to fit the (computed) prefWidth of the content, leading to a > horizontal scrollbar. Is this a bug I think calling it a

Re: ScrollPane.prefViewportWidth == computed size?

2013-06-03 Thread Werner Lehmann
Hi Richard, thanks for the quick reply. FYI, I am currently using a hardcoded value with some extra space, hopefully sufficient for all platforms. On 03.06.2013 20:57, Richard Bair wrote: I think calling it a bug would be fair, and this approach should work. I'll create a ticket later. Hm

Re: ScrollPane.prefViewportWidth == computed size?

2013-06-03 Thread Daniel Zwolenski
A similar, or at least related, issue I created a while back: https://javafx-jira.kenai.com/browse/RT-17988 On 04/06/2013, at 5:28 AM, Werner Lehmann wrote: > Hi Richard, > > thanks for the quick reply. FYI, I am currently using a hardcoded value with > some extra space, hopefully sufficient