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] Table: head and body dislocation when set the max-height property #9912

Closed
SirM2z opened this issue Feb 27, 2018 · 5 comments
Closed

Comments

@SirM2z
Copy link

SirM2z commented Feb 27, 2018

Element UI version

2.2.0

OS/Browsers version

win10 chrome 64

Vue version

2.5.13

Reproduction Link

https://jsfiddle.net/coolmrz/dn8x8azz/

Steps to reproduce

滑动表格的横向滚动条到最右端,会看到表头和表体错位。2.1.0有同样的问题,2.0.11没有问题

Slide the table horizontal scroll bar to the far right, you will see the head and body dislocation.Have the same problem in the 2.1.0 version, no problem in 2.0.11 version

What is Expected?

不错位

no dislocation

What is actually happening?

错位

dislocation

@element-bot element-bot changed the title [Bug Report] Table: head and body dislocation when set the max-height property dynamically [Bug Report] Table: head and body dislocation when set the max-height property Feb 27, 2018
@element-bot
Copy link
Member

Translation of this issue:

Element UI version

2.2.0

OS/Browsers version

Win10 chrome 64

Vue version

2.5.13

Reproduction Link

https://jsfiddle.net/coolmrz/dn8x8azz/

Steps to reproduce

Sliding table of the horizontal scroll bar to the right side, will see the header and body dislocation. 2.1.0 has the same problem, 2.0.11 has no problem

Slide the table horizontal scroll bar to the far right, you, you, "t", "t", "t", "t", "t", "t", "

What is Expected?

Dislocations
No dislocation

What is actually happening?

dislocation

Dislocation

@Leopoldthecoder
Copy link
Contributor

可否在拿到数据后再更新高度?https://jsfiddle.net/dn8x8azz/9/

@SirM2z
Copy link
Author

SirM2z commented Mar 2, 2018

谢谢,当然可以,如果框架层面不好优化的话

@elfman
Copy link
Contributor

elfman commented Mar 14, 2018

在最新的dev分支2d12519上测试,没有再出现这个问题,应该在某个提交里修复了

@Leopoldthecoder
Copy link
Contributor

是的,已在 #10034 修复。本周会发一个版本。

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

6 participants