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): [message] fix overlapping issue #8368
Conversation
👋 @Banana-energy, seems like this is your first time contribution to element-plus.
|
Hello @Banana-energy, thank you for contributing to element-plus, please see our guideline to see how to make contribution |
🧪 Playground Preview: https://element-plus.run/?pr=8368 |
@@ -61,7 +61,7 @@ const message: MessageFn & Partial<Message> & { _context: AppContext | null } = | |||
|
|||
let verticalOffset = options.offset || 20 | |||
instances.forEach(({ vm }) => { | |||
verticalOffset += (vm.el?.offsetHeight || 0) + 16 |
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.
Actually the problem is that vm.el?.offsetHeight
is 0
.
Please make sure these boxes are checked before submitting your PR, thank you!
dev
branch.closes #7217