Commit 0701295e authored by Devin Lin's avatar Devin Lin 🎨
Browse files

ScrollBar & ScrollIndicator: Show over content even if it loaded after

parent ff0a0767
Pipeline #264335 passed with stage
in 2 minutes and 11 seconds
......@@ -11,6 +11,10 @@ import "impl" as Impl
T.ScrollBar {
id: control
// content may be loaded after this component, ensure it always stays above content
// inline with qqc2-desktop-style behaviour
z: 9999
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
......
......@@ -11,6 +11,10 @@ import "impl" as Impl
T.ScrollIndicator {
id: control
// content may be loaded after this component, ensure it always stays above content
// inline with qqc2-desktop-style behaviour
z: 9999
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
......
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