antvis / antvis/S2

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

Open
#2,295 2 comments 1 reaction 1 assignee Claimed by @lijinke666 View on GitHub
🐛 bug 💤 inactive
Dominant language
TypeScript
Stars
1.7k
Forks
220
PR merge metrics
No merged PRs in 30d

Description

### 🏷 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,使用 基础表
3. 将宽度设置为600px

### 😊 Expected Behavior
在宽度足够时滚动条不占位

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

### 💻 System information
| Environment | Info |
| ------- | ------- |
| System | macOS Monterey 12.3 |
| Browser | Chrome 114.0.5735.198 |

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.