summaryrefslogtreecommitdiff
path: root/src/web/app/desktop
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2017-11-18 10:12:29 +0900
committerGitHub <noreply@github.com>2017-11-18 10:12:29 +0900
commit235acda8517eb2af50c6fa55500c493b0029f770 (patch)
treea476a5337ddf5e546b9000ed46c3670e45e12a4b /src/web/app/desktop
parentv3142 (diff)
downloadmisskey-235acda8517eb2af50c6fa55500c493b0029f770.tar.gz
misskey-235acda8517eb2af50c6fa55500c493b0029f770.tar.bz2
misskey-235acda8517eb2af50c6fa55500c493b0029f770.zip
Update home.tag
Diffstat (limited to 'src/web/app/desktop')
-rw-r--r--src/web/app/desktop/tags/home.tag6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/web/app/desktop/tags/home.tag b/src/web/app/desktop/tags/home.tag
index 36e94ecc50..92f91c0848 100644
--- a/src/web/app/desktop/tags/home.tag
+++ b/src/web/app/desktop/tags/home.tag
@@ -271,9 +271,11 @@
const widgetsBottom = (rect.top + window.scrollY) + rect.height;
if (windowBottom > widgetsBottom && widgetsHeight > window.innerHeight) {
- widgets.parentNode.style.marginTop = `${(windowBottom - rect.height) - this.containerTop}px`;
+ const top = (windowBottom - rect.height) - this.containerTop;
+ widgets.parentNode.style.marginTop = `${top}px`;
} else if (windowTop < rect.top + window.scrollY || widgetsHeight < window.innerHeight) {
- widgets.parentNode.style.marginTop = `${(windowTop - this.containerTop)}px`;
+ const top = windowTop - this.containerTop;
+ widgets.parentNode.style.marginTop = `${top}px`;
}
};