Skip to content

Commit 211a131

Browse files
committed
fix(docs): QVirtualScroll example with QScrollArea -> style props -> do not use "right" directly, but through horizontal/vertical-offset props #17597
1 parent d9f1c41 commit 211a131

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

docs/src/examples/QVirtualScroll/ScrollArea.vue

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
22
<div class="q-ma-md">
33
<q-scroll-area
4+
:horizontal-offset="[0, 3]"
45
:thumb-style="thumbStyle"
56
:bar-style="barStyle"
67
style="height: 200px"
@@ -44,23 +45,17 @@ export default {
4445
heavyList,
4546
4647
thumbStyle: {
47-
right: '5px',
4848
borderRadius: '8px',
4949
backgroundColor: '#027be3',
5050
width: '8px',
5151
opacity: 0.75
5252
},
5353
5454
barStyle: {
55-
right: '2px',
5655
borderRadius: '14px',
5756
backgroundColor: '#027be3',
5857
width: '14px',
59-
opacity: 0.2,
60-
marginTop: '-3px',
61-
marginBottom: '-3px',
62-
paddingTop: '3px',
63-
paddingBottom: '3px'
58+
opacity: 0.2
6459
}
6560
}
6661
}

0 commit comments

Comments
 (0)