fix jumping login window layout
This commit is contained in:
parent
50b699ecf0
commit
299cc963e1
1 changed files with 1 additions and 2 deletions
|
|
@ -251,7 +251,7 @@ export function AuthLayout() {
|
||||||
pageHeight: page.clientHeight,
|
pageHeight: page.clientHeight,
|
||||||
mascotTopOffset: readPx(s, '--vojo-mascot-top'),
|
mascotTopOffset: readPx(s, '--vojo-mascot-top'),
|
||||||
mascotHeight: mascot.offsetHeight,
|
mascotHeight: mascot.offsetHeight,
|
||||||
modalHeight: modal.offsetHeight,
|
modalHeight: modal.scrollHeight,
|
||||||
footerHeight: footer.offsetHeight || readPx(s, '--vojo-footer-space', footer.offsetHeight),
|
footerHeight: footer.offsetHeight || readPx(s, '--vojo-footer-space', footer.offsetHeight),
|
||||||
anchorRatio: readNum(s, '--vojo-anchor-ratio', 0.58),
|
anchorRatio: readNum(s, '--vojo-anchor-ratio', 0.58),
|
||||||
minTop: readPx(s, '--vojo-modal-min-top'),
|
minTop: readPx(s, '--vojo-modal-min-top'),
|
||||||
|
|
@ -269,7 +269,6 @@ export function AuthLayout() {
|
||||||
const ro = new ResizeObserver(update);
|
const ro = new ResizeObserver(update);
|
||||||
ro.observe(page);
|
ro.observe(page);
|
||||||
ro.observe(mascot);
|
ro.observe(mascot);
|
||||||
ro.observe(modal);
|
|
||||||
ro.observe(footer);
|
ro.observe(footer);
|
||||||
window.addEventListener('resize', update);
|
window.addEventListener('resize', update);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue