Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Component] [tree, scrollbar] Tree外放一个ScrollBar默认会出现滚动条 #13396

Closed
lzl82891314 opened this issue Jun 28, 2023 · 6 comments · Fixed by #13446
Closed

[Component] [tree, scrollbar] Tree外放一个ScrollBar默认会出现滚动条 #13396

lzl82891314 opened this issue Jun 28, 2023 · 6 comments · Fixed by #13446

Comments

@lzl82891314
Copy link

Bug Type: Component

Environment

  • Vue Version: 3.3.4
  • Element Plus Version: 2.3.7
  • Browser / OS: Version 114.0.5735.135 (Official Build) (64-bit)
  • Build Tool: CDN

Reproduction

Related Component

  • el-tree
  • el-scrollbar

Reproduction Link

Element Plus Playground

Steps to reproduce

playground中默认就有滚动条

What is Expected?

不应该有滚动条

What is actually happening?

有滚动条

Additional comments

(empty)

@chenxch
Copy link
Member

chenxch commented Jun 28, 2023

demo

/cc @YunYouJun Judging from the demo above, it should be that the height of the checkbox exceeds the line height, which causes this problem. I don't know whether to reset the height of the checkbox in the tree or to cancel the default height of the checkbox. I would like to hear your views.

@YunYouJun
Copy link
Member

Oops, i find it. .el-checkbox height is 32px, and this item of list is 26px.

@YunYouJun
Copy link
Member

.el-tree-node__content height is 26px, so i think we can add a css var for el-checkbox height, and set css var in el-tree-node__content.

@YunYouJun
Copy link
Member

I create a PR #13446, please check it.

@L1yp
Copy link

L1yp commented Jul 18, 2023

哈哈上个月我也遇到了这个问题,看到了修复很开心https://discord.com/channels/746646622431346728/902898413094465587/1118145904462024837

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。

@github-actions github-actions bot locked and limited conversation to collaborators Aug 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants