From 320e941d9aacaf5f32cc684fa97aa91aa7c8f866 Mon Sep 17 00:00:00 2001 From: Pan Date: Thu, 31 May 2018 17:16:24 +0800 Subject: [PATCH] fix[Sticky]: fixed bug in resize #725 --- src/components/Sticky/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Sticky/index.vue b/src/components/Sticky/index.vue index 8dfa09be..d3a698e8 100644 --- a/src/components/Sticky/index.vue +++ b/src/components/Sticky/index.vue @@ -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 }