mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 22:17:30 -07:00
Update home.tag
This commit is contained in:
parent
d2892d7859
commit
76a4db87b4
1 changed files with 4 additions and 2 deletions
|
@ -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`;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue