diff --git a/src/Anchor/src/BaseAnchor.vue b/src/Anchor/src/BaseAnchor.vue index c13705ca5..ab9d2c20b 100644 --- a/src/Anchor/src/BaseAnchor.vue +++ b/src/Anchor/src/BaseAnchor.vue @@ -143,8 +143,8 @@ export default { slotEl.style.top = `${offsetTop}px` slotEl.style.height = `${offsetHeight}px` slotEl.style.maxWidth = `${offsetWidth + offsetLeft}px` - barEl.getBoundingClientRect() - slotEl.getBoundingClientRect() + void barEl.offsetHeight + void slotEl.offsetHeight if (!transition) { barEl.style.transition = null diff --git a/src/_mixins/placeable.js b/src/_mixins/placeable.js index b5d6839d3..bcc5be687 100644 --- a/src/_mixins/placeable.js +++ b/src/_mixins/placeable.js @@ -168,7 +168,7 @@ export default { watch: { active (value) { if (value) { - if (this.listenersRegistered) { + if (!this.listenersRegistered) { this.registerScrollListeners() this.registerResizeListener() this.listenersRegistered = true