From 4b18e0f36e260f0571bc3d11ca4061d653e145ee Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 25 Apr 2021 13:33:02 +0300 Subject: fix status error --- src/components/status/status.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/status/status.js') diff --git a/src/components/status/status.js b/src/components/status/status.js index 470c01f1..0befc72e 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) -- cgit v1.2.3-70-g09d2