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

[Bug Report] Asynchronous loading of data while fixing table headers results in temporary hiding of headers. gutter #17036

Closed
Forx-Js opened this issue Aug 14, 2019 · 3 comments
Assignees
Milestone

Comments

@Forx-Js
Copy link

Forx-Js commented Aug 14, 2019

Element UI version

2.11.1

OS/Browsers version

all

Vue version

2.6.6

Reproduction Link

https://codepen.io/forx-js/pen/abodxyY

Steps to reproduce

表格固定高度,
异步加载数据,使表格出现滚动条,
会导致头部中的.gutter宽度为0,并display:none;
重新调整尺寸触发浏览器回流后会恢复正常

What is Expected?

头部中的.gutter再出现滚动条时应该display:table-cell;并且宽度值为17px

What is actually happening?

异步加载数据,同时使表格出现滚动条,
会导致表头中的.gutter宽度为0,并display:none;
此问题会导致在IE中,因为缺少.gutter宽度,导致列与头部与下方列无法对齐
在谷歌中会出现滚动条上方出现空白
重新调整尺寸触发浏览器回流后恢复正常

@element-bot element-bot changed the title [Bug Report] 固定表头时 异步加载数据导致头部.gutter暂时隐藏 [Bug Report] Asynchronous loading of data while fixing table headers results in temporary hiding of headers. gutter Aug 14, 2019
@element-bot
Copy link
Member

Translation of this issue:

Element UI version

2.11.1

OS/Browsers version

All

Vue version

2.6.6

Reproduction Link

Https://codepen.io/forx-js/pen/abodxyY

Steps to reproduce

The table is fixed in height.

Asynchronous loading of data causes a scroll bar to appear in the table.
This results in A. gutter width of 0 in the head and display: none;

Resizing triggers browser reflux and returns to normal

What is Expected?

The. gutter scrollbar in the header should display: table-cell when it appears again; and the width value is 17px

What is actually happening?

Loading data asynchronously while scrolling the table.
This results in A. gutter width of 0 in the header and display: none;

This problem can lead to the lack of. gutter width in IE, resulting in column alignment with header and lower column.
There will be a blank space above the scroll bar in Google.

Resizing triggers browser reflux to return to normal

@ziyoung ziyoung self-assigned this Sep 4, 2019
@ziyoung ziyoung added this to the 2.13.0 milestone Sep 4, 2019
@ziyoung
Copy link
Contributor

ziyoung commented Sep 4, 2019

#17060 (comment)

@ziyoung ziyoung closed this as completed Sep 4, 2019
@ziyoung
Copy link
Contributor

ziyoung commented Sep 4, 2019

Duplicate of #17060

@ziyoung ziyoung marked this as a duplicate of #17060 Sep 4, 2019
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

3 participants