-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
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
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
- blocks
-
JDK-8097060 [Modena, TextArea] Vertical scrollbar appears in TextArea and then disappears
-
- Resolved
-