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 couldn't scroll under firefox #1946

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?

  1. 虚拟滚动容器,在firefox中,滚轮滚动失效
  2. 横向的虚拟滚动,在firefox中,横向滚动条的宽度不正确

What is the new behavior?

修复以上问题

Other information

在firefox下,添加一个height: 0 的元素并不能真正撑开容器的scrollHeight,需要设置 height 1px

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:

Please upload report for BASE (main@8e17e47). Learn more about missing BASE report.

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

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