diff --git a/src/app/pages/auth/AuthLayout.tsx b/src/app/pages/auth/AuthLayout.tsx index dc96af16..19671a55 100644 --- a/src/app/pages/auth/AuthLayout.tsx +++ b/src/app/pages/auth/AuthLayout.tsx @@ -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);