Skip to content

fix: 修复滚动条不被隐藏 - #3

Open
ViceEye wants to merge 1 commit into
EnderWolf006:mainfrom
ViceEye:fix/hide-scrollbar-descendants
Open

fix: 修复滚动条不被隐藏#3
ViceEye wants to merge 1 commit into
EnderWolf006:mainfrom
ViceEye:fix/hide-scrollbar-descendants

Conversation

@ViceEye

@ViceEye ViceEye commented Aug 6, 2026

Copy link
Copy Markdown

问题

Scroll(showScrollbar=False) 之前只隐藏了 bar_and_track 父控件。

原生滚动面板不会可靠地将可见性传递给内部嵌套的 trackscroll_box 控件,因此滚动条轨道和滑块仍然会显示。

修复

针对 touch 和 mouse 两种滚动模板,同时隐藏已知的 bar_and_track 子控件,包括:

  • 滚动条轨道 track
  • 滚动滑块 scroll_box
  • 相关的中间容器控件

这样设置 showScrollbar=False 后,滚动条轨道和滑块都会被隐藏。

验证

  • Python 编译检查通过
  • git diff --check 检查通过
  • 已使用包含 36 个网格槽位的 Scroll 列表进行验证

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant