another lint fix

This commit is contained in:
Shpuld Shpuldson 2017-04-12 19:10:38 +03:00
parent c989170321
commit d8a01454dc

View file

@ -107,7 +107,7 @@ const Status = {
let rect = this.$el.getBoundingClientRect() let rect = this.$el.getBoundingClientRect()
if (rect.top < 100) { if (rect.top < 100) {
window.scrollBy(0, rect.top - 200) window.scrollBy(0, rect.top - 200)
} else if(rect.bottom > window.innerHeight - 100) { } else if (rect.bottom > window.innerHeight - 100) {
// will be useful when scrolling down to replies or root posts is in // will be useful when scrolling down to replies or root posts is in
window.scrollBy(0, rect.bottom + 200) window.scrollBy(0, rect.bottom + 200)
} }