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
fix(cdk/overlay): sub-pixel deviations throwing off positioning in some cases
If the browser is zoomed in beyond the default level, it may report numbers with
sub-pixel deviations to `getBoundingClientRect` (e.g. 100.09 vs 100) which can throw off
our logic when comparing against the viewport size which is always a whole number.
These changes fix the issue by rounding down the numbers that we get from `getBoundingClientRect`.
Fixes#21350.
0 commit comments