diff options
| author | Henry Jameson <me@hjkos.com> | 2021-04-25 13:33:02 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2021-04-25 13:33:02 +0300 |
| commit | 4b18e0f36e260f0571bc3d11ca4061d653e145ee (patch) | |
| tree | 57fbd7d7e68ed940a53ccbc5fe80752146debe69 /src/components/status/status.js | |
| parent | b479d80366161768529655385165021fc368d155 (diff) | |
fix status error
Diffstat (limited to 'src/components/status/status.js')
| -rw-r--r-- | src/components/status/status.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
