Skip to content

Commit

Permalink
fix(QScrollArea): for some scenarios, it shows/hides scrollbars in a …
Browse files Browse the repository at this point in the history
…loop when QScrollArea is in a scrollable container #11169 #11318 #11319 #10120 #10281
  • Loading branch information
rstoenescu committed Jan 7, 2022
1 parent 546749d commit 79f7eb9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions ui/dev/src/pages/components/scroll-area-resize.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<template>
<div>
<div style="width: 400px; height: 100vh;" class="scroll">
<q-scroll-area
ref="scroll"
class="bg-yellow fit"
>
<div>
<div style="margin-top: 150px" />
<div style="margin-bottom: 25px" v-for="n in 4" :key="n">
{{ n }} Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
<q-btn label="Click" color="primary" />
</div>
</div>
</q-scroll-area>
</div>

<div style="height: 300px" />
</div>
</template>
1 change: 1 addition & 0 deletions ui/src/components/scroll-area/QScrollArea.sass
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.q-scrollarea
position: relative
contain: strict

&__bar,
&__thumb
Expand Down

0 comments on commit 79f7eb9

Please sign in to comment.