Skip to content

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

@xxxace

Description

@xxxace

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的宽度和布局进行优化

非常感谢

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions