-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
fix(components): [tooltip] display tooltip correctly #11643
Conversation
👋 @acyza, thank you for contributing element-plus. |
🧪 Playground Preview: https://element-plus.run/?pr=11643 |
简单测了下popover,tooltip,dropdown,select组件暂时没发现有啥问题。 |
要研究tooltip的定位过程可以通过devtools在popper.js的forceupdate函数结尾打断点,观察每次forceupdate结束tooltip的inset(left,top,right,bottom),transform样式的值。 |
另外给body设置 |
@acyza good question, 我觉得这个地方是个 bug,应该是我写代码的时候写错了,当时想的是 left: 0;
+++top: 0;
--- right: 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@acyza thank you for fixing this bug, please apply the suggestion so we can get this merged.
Co-authored-by: Jeremy <15975785+jw-foss@users.noreply.github.com>
Thank you for your contribution 👍 |
Please make sure these boxes are checked before submitting your PR, thank you!
dev
branch.fix #11629
这top-end明显比其他的矮一节。