Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Breeze Style for QQC2
Commits
a2ce95e2
Commit
a2ce95e2
authored
Feb 16, 2021
by
Noah Davis
🌵
Browse files
[ScrollView] set right and bottom padding to make room for scrollbars
parent
533ecf46
Changes
1
Hide whitespace changes
Inline
Side-by-side
style/qtquickcontrols/ScrollView.qml
View file @
a2ce95e2
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment