-
Notifications
You must be signed in to change notification settings - Fork 111
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
marginRight 不停改变 #22
Comments
给个 codepen 重现。 |
我看 antd-mobile 里没有水平的 Steps,在哪遇到的。 |
@afc163 新需求,这次新加的,外部用户需求 ant-design/ant-design-mobile#498 |
不刷新了,不过计算位置不太对 |
还是有问题,不知道为啥 marginRight 会影响最后一个元素的宽度计算。 |
我本地重现了。 |
- ? null : -(this.state.lastStepOffsetWidth / lastIndex + 1);
+ ? null : -Math.round(this.state.lastStepOffsetWidth / lastIndex + 1); 这样改,我本地好了。 |
你试试,没问题我发一个 patch。 |
图标位置好像和这个 bug 没关系,应该是样式实现问题。 |
已发 2.2.1,重新安装。 |
mateuszmazurek
added a commit
to mateuszmazurek/react-easy-stepper
that referenced
this issue
Dec 2, 2016
Fix margin-right jump in Chrome, close react-component#22
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: