fix[Sticky]: fixed bug in resize #725
This commit is contained in:
@@ -67,7 +67,7 @@ export default {
|
|||||||
handleScroll() {
|
handleScroll() {
|
||||||
this.width = this.$el.getBoundingClientRect().width
|
this.width = this.$el.getBoundingClientRect().width
|
||||||
const offsetTop = this.$el.getBoundingClientRect().top
|
const offsetTop = this.$el.getBoundingClientRect().top
|
||||||
if (offsetTop <= this.stickyTop) {
|
if (offsetTop < this.stickyTop) {
|
||||||
this.sticky()
|
this.sticky()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user