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

[Balloon]Tooltip 支持 needAdjust 自动调整位置 #3316

Closed
guoyunhe opened this issue Sep 6, 2021 · 3 comments
Closed

[Balloon]Tooltip 支持 needAdjust 自动调整位置 #3316

guoyunhe opened this issue Sep 6, 2021 · 3 comments
Assignees
Labels
2.x will be fixed in Design 2.0

Comments

@guoyunhe
Copy link
Contributor

guoyunhe commented Sep 6, 2021

Component

Balloon

Feature Description

浏览器原生的 tooltip (通过 title 属性配置)就是支持自动调整位置的,总是能显示在可见区域。当 trigger 位于视图的边缘,应当能够去调整位置。

@youluna
Copy link
Member

youluna commented Sep 9, 2021

Tooltip默认 needAdjust 为true的,现在的逻辑就是这样,当弹窗位于视图边缘时,tooltip会调整位置,让自己的内容最大化的展示出来。

@guoyunhe
Copy link
Contributor Author

@youluna 我看到的效果并没有 https://riddle.alibaba-inc.com/riddles/29f8c1

image

@bindoon bindoon self-assigned this Oct 11, 2021
@bindoon bindoon added the 2.x will be fixed in Design 2.0 label Oct 11, 2021
@bindoon
Copy link
Member

bindoon commented Oct 27, 2021

rename needAdjust to autoAdjust
will fixed in @alifd/next@1.25 with PR #3435

@bindoon bindoon closed this as completed Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x will be fixed in Design 2.0
Projects
None yet
Development

No branches or pull requests

3 participants