Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8091838

ScrollPane stretchToWidth and stretchToHeight would be nice

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • javafx

      Currently ScrollPane has fitToWidth and fitToHeight settings. These force the content to grow and shrink with the container, effectively turning off scrolling on that axis.

      A more common scenario (for me at least) is to want the scrollbars to be active if the ScrollPane is smaller than the preferred size of the content, and to then stretch the content if the ScrollPane is larger than the preferred size. Basically the Scrollpane would ideally never shrink its content smaller than its preferred size and would grow it to take up all available space.

      A forum discussion here provides a simple work-around but it would be nice to have this built in to the API:
      https://forums.oracle.com/forums/thread.jspa?messageID=9976056


       

            Unassigned Unassigned
            dzwolenskjfx Daniel Zwolenski (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported: