Merge branch 'patch-scroll-on-resize' into honest

This commit is contained in:
simon3000 2019-07-13 01:03:45 +02:00
commit 1252402e5e
No known key found for this signature in database
GPG Key ID: 9E04DC65786E7851

View File

@ -65,7 +65,11 @@ export default {
this.styleElement.innerText = this.css
this.scrollToBottom()
},
created() {
window.addEventListener('resize', this.scrollToBottom)
},
beforeDestroy() {
window.removeEventListener('resize', this.scrollToBottom)
document.head.removeChild(this.styleElement)
},
updated() {