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

Tree checkbox animation not correct #16259

Closed
1 task
zombieJ opened this issue Apr 23, 2019 · 1 comment · Fixed by #16272
Closed
1 task

Tree checkbox animation not correct #16259

zombieJ opened this issue Apr 23, 2019 · 1 comment · Fixed by #16272
Assignees
Labels
🐛 Bug Ant Design Team had proved that this is a bug. 👷🏻‍♂️ Someone working on it

Comments

@zombieJ
Copy link
Member

zombieJ commented Apr 23, 2019

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

Reproduction link

https://ant.design/components/tree-cn/#components-tree-demo-basic-controlled

Kapture 2019-04-23 at 22 23 58

Steps to reproduce

Click the checkbox twice

What is expected?

square animation

What is actually happening?

rect animation

Environment Info
antd 3.16.5
React 16.8.0
System Mac
Browser Chrome
@DiamondYuan
Copy link
Contributor

image

备注一下实现方法

父元素高度为宽度的 1.5 倍。所以 height 重写为 2/3 ,top 为 (1 - 2 / 3) / 2 = 1 / 6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Ant Design Team had proved that this is a bug. 👷🏻‍♂️ Someone working on it
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants