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

Toast控件弹出的提示框 未以自身中心点 纵向居中 #1389

Closed
Linkinzoo opened this issue May 26, 2017 · 5 comments · Fixed by #1541
Closed

Toast控件弹出的提示框 未以自身中心点 纵向居中 #1389

Linkinzoo opened this issue May 26, 2017 · 5 comments · Fixed by #1541
Assignees
Labels

Comments

@Linkinzoo
Copy link

What problem does this feature solve?

Toast控件弹出的提示框 纵向位置不居中,用户不能调整其位置。

What does the proposed API look like?

提供x,y参数来自行控制提示框的位置。

@ant-design-bot
Copy link

It will be better to write your issue/comment in English, so more people can understand you.
And this means that more people can help you or benefit from your issue/comment.
See: ant-design/ant-design#4897

@paranoidjk
Copy link
Contributor

目前是 flex 实现的水平垂直居中。

能否提供可复现的 demo ?

@ant-design-bot
Copy link

Hello @Linkinzoo. Please provide a re-producible demo: http://codepen.io/paranoidjk/pen/LWpaKe

@Linkinzoo
Copy link
Author

Demo from codepen: https://codepen.io/LinkinZoo/pen/EmJmeL
附图: http://chuantu.biz/t5/95/1495871971x2890174351.png
现象:现在是以弹窗顶部的像素点为基准,水平垂直居中的;
期待:让弹窗以其整体的中心点为基准,水平垂直居中;或提供API让用户自行调整。

@paranoidjk paranoidjk added bug and removed Need Demo labels May 30, 2017
@paranoidjk paranoidjk changed the title Toast控件弹出的提示框 纵向位置不居中 Toast控件弹出的提示框 未以自身中心点 纵向居中 May 30, 2017
paranoidjk referenced this issue in react-component/notification May 30, 2017
@paranoidjk paranoidjk self-assigned this May 30, 2017
@paranoidjk
Copy link
Contributor

cncolder pushed a commit to cncolder/ant-design-mobile that referenced this issue Jul 12, 2017
cncolder pushed a commit to cncolder/ant-design-mobile that referenced this issue Jul 12, 2017
lixiaoyang1992 pushed a commit to lixiaoyang1992/ant-design-mobile that referenced this issue Apr 26, 2018
lixiaoyang1992 pushed a commit to lixiaoyang1992/ant-design-mobile that referenced this issue Apr 26, 2018
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 a pull request may close this issue.

3 participants