Skip to content

Commit da86841

Browse files
committed
Update bottomfloat.js
1 parent a60db34 commit da86841

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bottomfloat.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ if (isMobile) {
125125

126126
landscape.addEventListener('change', () => {
127127

128-
bottomWrapper.style.setProperty('--window-height', window.innerHeight + 'px');
128+
onNextFrame(() => {
129+
bottomWrapper.style.setProperty('--window-height', window.innerHeight + 'px');
130+
});
129131

130132
});
131133

0 commit comments

Comments
 (0)