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
Did someone see how autoHeight can lead to subtle jumping due to rounding errors when all slides should have the same height? I have a carousel where I measured each slide's height by el.getBoundingClientRect().height. My measuring gave a height of 613.421875 but el.offsetHeight (which Swiper uses for auto height calculations) gives 613 and sometimes 614 in an unpredictable manner.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Did someone see how autoHeight can lead to subtle jumping due to rounding errors when all slides should have the same height? I have a carousel where I measured each slide's height by
el.getBoundingClientRect().height
. My measuring gave a height of 613.421875 butel.offsetHeight
(which Swiper uses for auto height calculations) gives 613 and sometimes 614 in an unpredictable manner.Beta Was this translation helpful? Give feedback.
All reactions