From 235acda8517eb2af50c6fa55500c493b0029f770 Mon Sep 17 00:00:00 2001
From: syuilo <Syuilotan@yahoo.co.jp>
Date: Sat, 18 Nov 2017 10:12:29 +0900
Subject: [PATCH] Update home.tag

---
 src/web/app/desktop/tags/home.tag | 6 ++++--
 1 file 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`;
 				}
 			};