1

I need to set the Min, Max and Pref width of the Pane contained inside of a ScrollPane to a single value (preferably the size of the ScrollPane's available viewing area).

If I just bind it to ScrollPane width, once the Scrollbar appears on the ScrollPane it overlays some of the underlying pane.

Is it possible to somehow determine the available width inside of the ScrollPane(i.e. full width minus the Scrollbar width) and monitor it for changes?

Elltz
  • 10,730
  • 4
  • 31
  • 59
user1488773
  • 77
  • 10
  • see my answer: https://stackoverflow.com/a/47450072/8356718 get scallBar width. –  Nov 23 '17 at 07:51
  • see my answer: https://stackoverflow.com/a/47450072/8356718 get scallBar width. –  Nov 23 '17 at 07:52

1 Answers1

1

I just found the answer. I can use the scrollPane.viewportBoundsProperty()

Elltz
  • 10,730
  • 4
  • 31
  • 59
user1488773
  • 77
  • 10