IDuxFE / idux

🚀 A UI Component Library for Vue3.x
https://idux.site
MIT License
546 stars 141 forks source link

fix(cdk:scroll): virtual scroll start offset should add size of prepended items #1950

Closed sallerli1 closed 4 months ago

sallerli1 commented 4 months ago

PR Checklist

Please check if your PR fulfills the following requirements:

What is the current behavior?

当虚拟滚动传入了 colModifier 和 rowModifier 时,滚动的offset值应当加上被添加到行首或者列首的元素尺寸,保证滚动的内容区的offset正确,否则会造成滚动位置跳跃的情况

What is the new behavior?

修复以上问题

Other information

idux-bot[bot] commented 4 months ago

This preview will be available after the AzureCI is passed.

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 90.70%. Comparing base (9c81358) to head (7913777). Report is 2 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1950 +/- ## ======================================= Coverage 90.70% 90.70% ======================================= Files 360 360 Lines 35595 35595 Branches 3863 3863 ======================================= Hits 32286 32286 Misses 3309 3309 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.