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

popover 位置计算错误,每次点击显示的位置发生闪跳 #3147

Closed
1 task
FishLyn opened this issue Nov 10, 2020 · 2 comments
Closed
1 task

popover 位置计算错误,每次点击显示的位置发生闪跳 #3147

FishLyn opened this issue Nov 10, 2020 · 2 comments
Labels

Comments

@FishLyn
Copy link

FishLyn commented Nov 10, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.0.0-beta.15

Environment

Vue3

Reproduction link

https://2x.antdv.com/components/popover-cn/

Steps to reproduce

<a-popover
  v-model:visible="noticeVisible"
  arrow-point-at-center
  placement="bottomRight"
  trigger="click"
  :overlayStyle="{
    'width': '300px'
  }"
>
<template #content>
<div class="notice-title">
<span>应用通知</span>
<a-button type="link">清空</a-button>
</div>
<div class="notice-content">
<div class="notice-item">
<div class="content">
<a-avatar size="small">
<template #icon><UserOutlined /></template>
</a-avatar>
<span>这是一条新的通知</span>
</div>
<span>刚刚 15:20</span>
</div>
<div class="notice-item">
<div class="content">
<a-avatar size="small">
<template #icon><UserOutlined /></template>
</a-avatar>
<span>这是一条新的通知</span>
</div>
<span>2020-11-02 15:20</span>
</div>
<a-button type="link">
查看更多
</a-button>
</div>
</template>
<div class="notice">
<a-badge dot color="volcano">
<BellOutlined style="fontSize: 16px; color: #FFFFFF;" />
</a-badge>
</div>
</a-popover>

What is expected?

其中一个位置是正确的,但是另一个位置的 top 和 left 都是有问题的

What is actually happening?

popover 位置计算有问题,每次点击后的位置会发生变化,会在两个位置之间反复横跳

@tangjinzhou
Copy link
Member

临时方案: transitionName=""

@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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants