Commit a2ce95e2 authored by Noah Davis's avatar Noah Davis 🌵
Browse files

[ScrollView] set right and bottom padding to make room for scrollbars

parent 533ecf46
......@@ -11,6 +11,27 @@ T.ScrollView {
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
contentHeight + topPadding + bottomPadding)
rightPadding: {
if (ScrollBar.vertical
&& ScrollBar.vertical.background
&& ScrollBar.vertical.background.visible
) {
return ScrollBar.vertical.background.width
} else {
return horizontalPadding
}
}
bottomPadding: {
if (ScrollBar.horizontal
&& ScrollBar.horizontal.background
&& ScrollBar.horizontal.background.visible
) {
return ScrollBar.horizontal.background.height
} else {
return verticalPadding
}
}
ScrollBar.vertical: ScrollBar {
parent: control
x: control.mirrored ? 0 : control.width - width
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment