fix jumping login window layout

This commit is contained in:
v.lagerev 2026-04-16 01:47:13 +03:00
parent 50b699ecf0
commit 299cc963e1

View file

@ -251,7 +251,7 @@ export function AuthLayout() {
pageHeight: page.clientHeight,
mascotTopOffset: readPx(s, '--vojo-mascot-top'),
mascotHeight: mascot.offsetHeight,
modalHeight: modal.offsetHeight,
modalHeight: modal.scrollHeight,
footerHeight: footer.offsetHeight || readPx(s, '--vojo-footer-space', footer.offsetHeight),
anchorRatio: readNum(s, '--vojo-anchor-ratio', 0.58),
minTop: readPx(s, '--vojo-modal-min-top'),
@ -269,7 +269,6 @@ export function AuthLayout() {
const ro = new ResizeObserver(update);
ro.observe(page);
ro.observe(mascot);
ro.observe(modal);
ro.observe(footer);
window.addEventListener('resize', update);