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

[Tooltip] Popover is displayed in the wrong direction when title is long text #14582

Closed
1 task done
orzyyyy opened this issue Jan 27, 2019 · 5 comments · May be fixed by react-component/align#22
Closed
1 task done

Comments

@orzyyyy
Copy link
Contributor

orzyyyy commented Jan 27, 2019

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

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Hover the two images and observe the Popover display direction.
demo

What is expected?

Popover displays in correct direction

What is actually happening?

As title

Environment Info
antd 3.13.0
React 16.7
System windows 10
Browser chrome 71.0.3578.98
@ztplz
Copy link
Contributor

ztplz commented Jan 27, 2019

image
Set position to bottom.

@orzyyyy
Copy link
Contributor Author

orzyyyy commented Jan 27, 2019

It works in demo, but in the actual scenario, manually specifying placement is unrealistic, because I don't know how many elements are in the array. If placement is assigned, all the Popover will display at bottom.

What I need is that it can automatically determine the placement.

@ztplz
Copy link
Contributor

ztplz commented Feb 2, 2019

dom-align的逻辑错了,我改改

@afc163
Copy link
Member

afc163 commented Mar 13, 2020

4.0 still has this bug.

@afc163
Copy link
Member

afc163 commented Aug 29, 2020

This issue don't exist in 4.6.2 now, closing.

https://codesandbox.io/s/2woymyk6z0

@afc163 afc163 closed this as completed Aug 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants