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

fix(components): [message] fix overlapping issue #8368

Closed
wants to merge 0 commits into from

Conversation

Banana-energy
Copy link

Please make sure these boxes are checked before submitting your PR, thank you!

  • Make sure you follow contributing guide English | (中文 | Español | Français).
  • Make sure you are merging your commits to dev branch.
  • Add some descriptions and refer to relative issues for your PR.

closes #7217

@pull-request-triage
Copy link

👋 @Banana-energy, seems like this is your first time contribution to element-plus.

  • Please make sure that you have read our guidelines and code of conduct before making a contribution.
  • You can comment with /label Components:[component_name] to add a label for which component you are working on.
  • You may join our Discord for staying tuned.

@pull-request-triage pull-request-triage bot added 1st contribution Their very first contribution Needs Review labels Jun 20, 2022
@github-actions
Copy link

Hello @Banana-energy, thank you for contributing to element-plus, please see our guideline to see how to make contribution

@github-actions
Copy link

github-actions bot commented Jun 20, 2022

@github-actions github-actions bot added the CommitMessage::Qualified Qualified commit message label Jun 20, 2022
@github-actions
Copy link

🧪 Playground Preview: https://element-plus.run/?pr=8368
Please comment the example via this playground if needed.

@@ -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
Copy link
Collaborator

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.

sxzz added a commit that referenced this pull request Jun 20, 2022
@sxzz sxzz mentioned this pull request Jun 20, 2022
3 tasks
sxzz added a commit that referenced this pull request Jun 20, 2022
sxzz added a commit that referenced this pull request Jun 21, 2022
sxzz added a commit that referenced this pull request Jun 21, 2022
sxzz added a commit that referenced this pull request Jun 21, 2022
sxzz added a commit that referenced this pull request Jun 22, 2022
* fix(components): [message]: offset

closes #7217, #8368
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report] [Style] [message] 代码多次调用ElMessage方法,出现重叠的问题
2 participants