aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols/macos/ScrollView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/quickcontrols/macos/ScrollView.qml')
-rw-r--r--src/quickcontrols/macos/ScrollView.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quickcontrols/macos/ScrollView.qml b/src/quickcontrols/macos/ScrollView.qml
index 4557da1c0c..86e6bc1a15 100644
--- a/src/quickcontrols/macos/ScrollView.qml
+++ b/src/quickcontrols/macos/ScrollView.qml
@@ -14,8 +14,8 @@ T.ScrollView {
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
contentHeight + topPadding + bottomPadding)
- rightPadding: ScrollBar.vertical.visible ? ScrollBar.vertical.width : 0
- bottomPadding: ScrollBar.horizontal.visible ? ScrollBar.horizontal.height : 0
+ rightPadding: effectiveScrollBarWidth
+ bottomPadding: effectiveScrollBarHeight
// Don't set __notCustomizable here, because it would require special-casing
// setFlickable's call to setContentItem.