The size of the internal controls for a scrollbar seem to be hard coded. There is no way to change the size either through Stylesheets or control variable.
This makes it difficult to use the scroll bar on environments like touch screen devices where the scrollbar knob needs to be bigger.
When this runs, the scroll bar should be same dimensions as the Rectangle, however the height of the visible portion of the scroll bar is constant.
=====
import javafx.scene.Group;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
Stage {
title: "ScrollBar"
width: 600
height: 400
scene: Scene {
content: [
Group {
layoutX: 10
layoutY: 10
content: [
Rectangle {
width: 500
height: 200
fill: Color.YELLOW
},
ScrollBar {
vertical: false
height: 200
width: 500
},
]
}
]
}
}
This makes it difficult to use the scroll bar on environments like touch screen devices where the scrollbar knob needs to be bigger.
When this runs, the scroll bar should be same dimensions as the Rectangle, however the height of the visible portion of the scroll bar is constant.
=====
import javafx.scene.Group;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
Stage {
title: "ScrollBar"
width: 600
height: 400
scene: Scene {
content: [
Group {
layoutX: 10
layoutY: 10
content: [
Rectangle {
width: 500
height: 200
fill: Color.YELLOW
},
ScrollBar {
vertical: false
height: 200
width: 500
},
]
}
]
}
}