Skip to content

Commit faf8cf3

Browse files
author
Guillaume Chau
committed
fix: demo double scrollbar on Firefox
1 parent 186a53f commit faf8cf3

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

docs-src/src/App.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,14 @@ body {
3737
align-items: stretch;
3838
}
3939
40+
.menu {
41+
flex: auto 0 0;
42+
}
43+
4044
.menu,
4145
.page {
4246
padding: 12px;
47+
box-sizing: border-box;
4348
}
4449
4550
.package {
@@ -70,7 +75,6 @@ body {
7075
background: #42b983;
7176
}
7277
73-
7478
.vue-recycle-scroller__item-container,
7579
.vue-recycle-scroller__item-wrapper {
7680
box-sizing: border-box;

docs-src/src/components/DynamicScrollerDemo.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ export default {
7272
height: 100%;
7373
}
7474
75+
.dynamic-scroller-demo {
76+
overflow: hidden;
77+
}
78+
7579
.notice {
7680
padding: 24px;
7781
font-size: 20px;

docs-src/src/components/RecycleScrollerDemo.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,6 @@ export default {
9595
pageModeFullPage: true,
9696
}),
9797
98-
watch: {
99-
count () {
100-
this.generateItems()
101-
},
102-
enableLetters () {
103-
this.generateItems()
104-
},
105-
},
106-
10798
computed: {
10899
countInput: {
109100
get () {
@@ -132,6 +123,15 @@ export default {
132123
},
133124
},
134125
126+
watch: {
127+
count () {
128+
this.generateItems()
129+
},
130+
enableLetters () {
131+
this.generateItems()
132+
},
133+
},
134+
135135
mounted () {
136136
this.$nextTick(this.generateItems)
137137
window.scroller = this.$refs.scroller

0 commit comments

Comments
 (0)