chore: small fixes

This commit is contained in:
07akioni 2020-05-19 00:13:17 +08:00
parent bd0584f319
commit 4f52a25308
2 changed files with 3 additions and 3 deletions

View File

@ -143,8 +143,8 @@ export default {
slotEl.style.top = `${offsetTop}px` slotEl.style.top = `${offsetTop}px`
slotEl.style.height = `${offsetHeight}px` slotEl.style.height = `${offsetHeight}px`
slotEl.style.maxWidth = `${offsetWidth + offsetLeft}px` slotEl.style.maxWidth = `${offsetWidth + offsetLeft}px`
barEl.getBoundingClientRect() void barEl.offsetHeight
slotEl.getBoundingClientRect() void slotEl.offsetHeight
if (!transition) { if (!transition) {
barEl.style.transition = null barEl.style.transition = null

View File

@ -168,7 +168,7 @@ export default {
watch: { watch: {
active (value) { active (value) {
if (value) { if (value) {
if (this.listenersRegistered) { if (!this.listenersRegistered) {
this.registerScrollListeners() this.registerScrollListeners()
this.registerResizeListener() this.registerResizeListener()
this.listenersRegistered = true this.listenersRegistered = true