S2 icon indicating copy to clipboard operation
S2 copied to clipboard

🐛 表格横向滚动条在宽度足够无需滚动时依然占位

Open LUUUAN opened this issue 2 years ago • 2 comments

🏷 Version

Package Version
@antv/s2 1.49.0
@antv/s2-react 1.42.0
@antv/s2-vue

Sheet Type

  • [x] PivotSheet
  • [x] TableSheet
  • [ ] GridAnalysisSheet
  • [ ] StrategySheet
  • [ ] EditableSheet

🖋 Description

在横向空间不足时,表格下方会出现滚动条,但当宽度足够、不绘制滚动条时,表格下方依然会预留滚动条的位置 截屏2023-07-26 11 51 53

image

⌨️ Code Snapshots

使用代码库中的 react-playground

🔗 Reproduce Link

🤔 Steps to Reproduce

  1. 运行 react-playground,使用 基础表
  2. 将宽度设置为600px

😊 Expected Behavior

在宽度足够时滚动条不占位

😅 Current Behavior

横向宽度足够没有滚动条,依然预留了滚动条的位置

💻 System information

Environment Info
System macOS Monterey 12.3
Browser Chrome 114.0.5735.198

LUUUAN avatar Jul 26 '23 05:07 LUUUAN

你好 @LUUUAN,很抱歉给你带来了不好的体验, 我们会尽快排查问题并修复, 请关注后续发布日志.

Hello, @LUUUAN, We are so sorry for the bad experience. We will troubleshoot and fix the problem as soon as possible. Please pay attention to the follow-up change logs.

github-actions[bot] avatar Jul 28 '23 07:07 github-actions[bot]

会影响布局计算, 2.0 版本中修复

lijinke666 avatar May 17 '24 03:05 lijinke666