aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2020-09-01 14:10:42 +0200
committerMitch Curtis <mitch.curtis@qt.io>2020-09-07 14:55:31 +0200
commit38427d57bf04562060d476980aaf4f68cf83fe44 (patch)
tree2873f98cf1257d9d5b62bf0c000acf7392214afa
parent65c300c74a95a62571bcc60929707dc946be7af7 (diff)
Native style: don't use anchors inside the style
Using anchors will break the sanity test. Change-Id: I6f27e98ae95e811db5063f0bc3866f386dbbb16e Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r--src/imports/controls/macos/ScrollBar.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/imports/controls/macos/ScrollBar.qml b/src/imports/controls/macos/ScrollBar.qml
index 72430e95..c935fecb 100644
--- a/src/imports/controls/macos/ScrollBar.qml
+++ b/src/imports/controls/macos/ScrollBar.qml
@@ -50,7 +50,10 @@ NativeStyle.DefaultScrollBar {
NativeStyle.ScrollBar {
// Fade a hovered-looking version of the handle
// on top of the default handle when hovering it
- anchors.fill: contentItem
+ x: contentItem.x
+ y: contentItem.y
+ width: contentItem.width
+ height: contentItem.height
control: controlRoot
subControl: NativeStyle.ScrollBar.Handle
overrideState: NativeStyle.ScrollBar.AlwaysHovered