BorderPane ignores managed property?
Scott Palmer
swpalmer at gmail.com
Sat Nov 10 10:14:34 PST 2012
For the record I believe this is the issue I need to workaround in ScrollPane
http://javafx-jira.kenai.com/browse/RT-20698
That is the primary reason we have rolled our own ScrollPane equivalent. We allow dragging of some nodes that are in the content of the ScrollPane and this can cause the content to change size. When the ScrollPane is not positioned at 0 and the content shrinks - it flickers like mad.
(It also appears that our version has improved performance, but we are not extending Control and doing it "the right way".)
Scott
On 2012-11-08, at 7:00 PM, Richard Bair <richard.bair at oracle.com> wrote:
> Yikes, that would be bad! Sounds like a JIRA is in order (and maybe a simple patch?! :-)).
>
> Thanks
> Richard
>
> On Nov 8, 2012, at 2:43 PM, Scott Palmer <swpalmer at gmail.com> wrote:
>
>> I did a quick search in Jira but I didn't see this particular issue. It seems that in JavaFX 2.2 BorderPane ignores the managed property. I am rolling my own scroll pane because there is a horrible flickering bug in the standard ScrollPane when the content size changes and the scroll position isn't at 0 (bug report on the way soon).
>>
>> I have placed ScrollBars in the left and bottom panes of the BorderPane and bound their managed property to the visibility property. The problem is that when I hide the scroll bars they are still taking up the physical space in the BorderPane.
>>
>> I'm working around the problem by wrapping them in an HBox and VBox - which shrinks to zero size when the contained ScrollBar becomes unmanaged.
>>
>> Scott
>
More information about the openjfx-dev
mailing list