diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-11-20 09:10:11 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-11-20 09:10:11 +0900 |
| commit | 728d8b64e0628b2a7d2a4c33592b35bb33a0673e (patch) | |
| tree | 1aa230fc3ff440c046939ae6385d6c18bd0ace76 /src | |
| parent | #918 (diff) | |
| download | misskey-728d8b64e0628b2a7d2a4c33592b35bb33a0673e.tar.gz misskey-728d8b64e0628b2a7d2a4c33592b35bb33a0673e.tar.bz2 misskey-728d8b64e0628b2a7d2a4c33592b35bb33a0673e.zip | |
Clean up
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/app/desktop/tags/home.tag | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/web/app/desktop/tags/home.tag b/src/web/app/desktop/tags/home.tag index a2a372a0e1..95e68cbcbb 100644 --- a/src/web/app/desktop/tags/home.tag +++ b/src/web/app/desktop/tags/home.tag @@ -259,28 +259,6 @@ } }); - this.followWidgets = () => { - const windowBottom = window.scrollY + window.innerHeight; - const windowTop = window.scrollY + this.headerHight; - - const calc = widgets => { - const rect = widgets.getBoundingClientRect(); - const widgetsHeight = rect.height + this.containerTop; - const widgetsBottom = (rect.top + window.scrollY) + rect.height; - - if (windowBottom > widgetsBottom && widgetsHeight > window.innerHeight) { - const top = (windowBottom - rect.height) - this.containerTop; - widgets.parentNode.style.marginTop = `${top}px`; - } else if (windowTop < rect.top + window.scrollY || widgetsHeight < window.innerHeight) { - const top = windowTop - this.containerTop; - widgets.parentNode.style.marginTop = `${top}px`; - } - }; - - calc(this.refs.left); - calc(this.refs.right); - }; - this.setWidget = (widget, prepend = false) => { const el = document.createElement(`mk-${widget.name}-home-widget`); |