mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-04-06 03:57:53 +08:00
fix[Sticky]: fixed bug in resize #725
This commit is contained in:
parent
d0f6d3f1f6
commit
320e941d9a
@ -67,7 +67,7 @@ export default {
|
||||
handleScroll() {
|
||||
this.width = this.$el.getBoundingClientRect().width
|
||||
const offsetTop = this.$el.getBoundingClientRect().top
|
||||
if (offsetTop <= this.stickyTop) {
|
||||
if (offsetTop < this.stickyTop) {
|
||||
this.sticky()
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user