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

nz-row gutter 值是数组时 , 当值从[16,1] 变到 [16,0] 后表现时一样的, 但是[16, 2]就可以了, 是0 的特殊性么 #5435

Closed
zhhb opened this issue Jun 16, 2020 · 1 comment · Fixed by #5436
Assignees

Comments

@zhhb
Copy link

zhhb commented Jun 16, 2020

Reproduction link

https://stackblitz.com/edit/angular-rvttxr-jxeluv?file=src%2Fapp%2Fapp.component.ts

Steps to reproduce

  • 先将其中一个值设置为大于0
  • 将其上述步骤中的值减小到0, 对应的margin属性依旧是 -0.5px

What is expected?

当数字中的 值从 1 -> 0 是期望margin属性被正确设置

What is actually happening?

当数字中的 值从 1 -> 0 是期望margin属性未被正确设置

Environment Info
ng-zorro-antd 9.1.2
Browser 5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36
@zorro-bot
Copy link

zorro-bot bot commented Jun 16, 2020

Translation of this issue:

nz-row gutter value is an array, the performance when the same value is changed from [1/16] to [16,0], but [16, 2] on it, it particularity 0

Reproduction link

[Https://stackblitz.com/edit/angular-rvttxr-jxeluv?file=src%2Fapp%2Fapp.component.ts](https://stackblitz.com/edit/angular-rvttxr-jxeluv?file=src% 2Fapp% 2Fapp.component.ts)

Steps to reproduce

  • wherein a first value is greater than 0
  • the value which the above step is reduced to zero, the corresponding margin property still -0.5px

What is expected?

When the value of the numbers from 1 -> 0 is desired margin attribute is set correctly

What is actually happening?

When the value of the numbers from 1 -> 0 is not properly set a desired margin property

Environment Info
Ng-zorro-antd 9.1.2
Browser 5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit / 537.36 (KHTML, like Gecko) Chrome / 83.0.4103.97 Safari / 537.36

vthinkxie pushed a commit to vthinkxie/ng-zorro-antd that referenced this issue Jun 16, 2020
vthinkxie pushed a commit to vthinkxie/ng-zorro-antd that referenced this issue Jun 16, 2020
vthinkxie pushed a commit to vthinkxie/ng-zorro-antd that referenced this issue Jun 16, 2020
vthinkxie pushed a commit that referenced this issue Jun 16, 2020
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this issue Aug 5, 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.

2 participants