VisActor / VisActor/VTable

[Feature] scrollbar 宽度占用空间优化

Open
#3,742 2 comments 0 reactions 1 assignee View on GitHub

@xxxace is already working on this.

Since Apr 23, 2025.

feature
Dominant language
TypeScript
Stars
3.7k
Forks
486
Avg merge
1d 19h
Merged PRs (30d)
16

Description

What problem does this feature solve?
theme: {
    scrollStyle: {
      scrollRailColor: 'RGBA(216,216,216,.5)',
      visible: 'always',
      width: 16,
      hoverOn: false,
      barToSide: true,
      scrollSliderCornerRadius: 0,
      scrollSliderColor: 'RGBA(170,170,170,1)',
    }
}

当hoverOn: false时,高度够的情况下,scrollbar是隐藏的(正常),但是scrollbar的宽度依然占用(不正常)

Image

当hoverOn: true时, 出现的scrollbar会遮挡住内容

Image

What does the proposed API look like?

个人认为无需修改api,只需在渲染时对scrollbar的宽度和布局进行优化

非常感谢

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.