Skip to content

Commit 91d7717

Browse files
committed
fix(with-without): tablet height overflow on load; force resize
1 parent d65ba1d commit 91d7717

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/with-without/js/with-without.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,9 @@ if (learnMoreModal) {
8989
}
9090
});
9191
}
92+
93+
// Force just the size-setting event to set height properly after dom loaded to fix content overlap bug on tablet.
94+
// We want height to be accurate as soon as possible *and* afterward, so this lightweight double-check should stay.
95+
setTimeout(() => {
96+
handleResize(true, false);
97+
}, 0);

0 commit comments

Comments
 (0)