You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In utils.js, the default method used to get the web height is getBoundingClientRect, and a timer is set to ensure that the height is correct before stopping further adjustments. However, getBoundingClientRect returns the height relative to the viewport, so if scrolling occurs during the timer interval, it could lead to incorrect height calculations.
So, why not directly use height = ${element}.offsetHeight to ensure that the correct web height is obtained every time?
The text was updated successfully, but these errors were encountered:
Platform targeting (iOS/Android)
IOS
Additional context
In utils.js, the default method used to get the web height is getBoundingClientRect, and a timer is set to ensure that the height is correct before stopping further adjustments. However, getBoundingClientRect returns the height relative to the viewport, so if scrolling occurs during the timer interval, it could lead to incorrect height calculations.
So, why not directly use height = ${element}.offsetHeight to ensure that the correct web height is obtained every time?
The text was updated successfully, but these errors were encountered: