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-table在flex布局里,超出边界 #3604

Closed
liwei511 opened this issue Jun 19, 2019 · 8 comments
Closed

nz-table在flex布局里,超出边界 #3604

liwei511 opened this issue Jun 19, 2019 · 8 comments
Assignees

Comments

@liwei511
Copy link

Reproduction link

https://stackblitz.com/edit/angular-yo2k28

Steps to reproduce

重现链接里直接可看到

What is expected?

nz-table符合flex预期,宽度不够出现滚动条。

What is actually happening?

没有滚动条,超出了边界,撑大了flex

Environment Info
ng-zorro-antd 7.5.1
Browser Chrome 72
@zorro-bot
Copy link

zorro-bot bot commented Jun 19, 2019

Translation of this issue:

Nz-table in the flex layout, beyond the boundary

Reproduction link

https://stackblitz.com/edit/angular-yo2k28

Steps to reproduce

Can be seen directly in the replay link

What is expected?

The nz-table conforms to the flex expectation, and the width is not enough for the scroll bar.

What is actually happening?

No scroll bar, beyond the border, stretched up flex

Environment Info
ng-zorro-antd 7.5.1
Browser Chrome 72

@vthinkxie
Copy link
Member

碰到样式问题,麻烦先去搜css的标准写法,谢谢
https://stackblitz.com/edit/angular-yo2k28-fothhg?file=src/app/app.component.ts

@liwei511
Copy link
Author

@vthinkxie
Copy link
Member

@liwei511 不知道你想表达的具体意思,所有的web-compoonent的tag都是默认display:inline的,如果你想要100%宽度的话,至少父级需要100%宽度,在父级是一个inline元素下,你使用多少个display:flex也不可能获得你想要的效果

@liwei511
Copy link
Author

@vthinkxie 是我错了,不是width的问题,谢谢

@liwei511
Copy link
Author

@vthinkxie 不好意思,打扰了,stackblitz已更新

@vthinkxie
Copy link
Member

vthinkxie commented Jun 24, 2019

@liwei511
任何手动设定 css 不生效的情况,和组件库都不会有任何关系
https://stackblitz.com/edit/angular-yo2k28-y3zsal?file=src/app/app.component.ts

@liwei511
Copy link
Author

谢谢,我该好好学习css了,多谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants