-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(QScrollArea): for some scenarios, it shows/hides scrollbars in a …
- Loading branch information
1 parent
546749d
commit 79f7eb9
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.q-scrollarea | ||
position: relative | ||
contain: strict | ||
|
||
&__bar, | ||
&__thumb | ||
|