diff --git a/src/components/status/status.js b/src/components/status/status.js index 470c01f191..0befc72e41 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -308,7 +308,7 @@ const Status = { watch: { 'highlight': function (id) { if (this.status.id === id) { - let rect = this.$el.getBoundingClientRect() + let rect = this.$refs.root.getBoundingClientRect() if (rect.top < 100) { // Post is above screen, match its top to screen top window.scrollBy(0, rect.top - 100) diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 00e962f301..60ab4601a1 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -2,6 +2,7 @@