File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## WIP
4+
5+ ### Fixed
6+
7+ - Fix Sticky component calculates wrong top offset, when animation is in progress
8+
39## 3.21.8 (July 25, 2024)
410
511### Fixed
Original file line number Diff line number Diff line change @@ -188,7 +188,10 @@ export default {
188188 }
189189
190190 const overflow = this . overflowFlip ? 0 : Math . max ( 0 , height + offset - viewport ) ;
191- const topOffset = getOffset ( referenceElement ) . top ;
191+ const topOffset =
192+ getOffset ( referenceElement ) . top -
193+ // offset possible `transform: translateY` animation 'uk-animation-slide-top' while hiding
194+ new DOMMatrix ( css ( referenceElement , 'transform' ) ) . m42 ;
192195 const elHeight = dimensions ( this . $el ) . height ;
193196
194197 const start =
You can’t perform that action at this time.
0 commit comments