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

2.9.1 table components set height to 100% cause some problem #15806

Closed
yklhello opened this issue May 31, 2019 · 11 comments · Fixed by #16013
Closed

2.9.1 table components set height to 100% cause some problem #15806

yklhello opened this issue May 31, 2019 · 11 comments · Fixed by #16013
Milestone

Comments

@yklhello
Copy link

Element UI version

2.9.1

OS/Browsers version

mac/chrome

Vue version

2.6.10

Reproduction Link

https://codepen.io/ykl/pen/eaQWpR

Steps to reproduce

set height to 100% in component el-table
open any browser to see the height become 100px
surprise~

What is Expected?

the actual height become 100%

What is actually happening?

the actual height become 100px

@lanseria
Copy link

it also cause. if set table height to calc(100vh - 260px)

@zhangruinian
Copy link

same problem now
I solve it with

<el-table style="height: calc(100vh - 225px); overflow: auto;">

@Yancy1028
Copy link

same problem now
waiting

@zhangruinian
Copy link

想设置响应式table高度 超过出现滚动条...现在全得修改 郁闷呀

@zhangruinian
Copy link

之前项目的height:100%全失效了
image

@zhangruinian
Copy link

using 2.9.0 everything is ok there

@ggwork
Copy link

ggwork commented Jun 14, 2019

give the el-table parent node a height, then give the el-table a samller height then set the el-table min-height 100%;
like this min-height100%

@victorpfm
Copy link

using 2.9.0 everything is ok there

Downgraded from 2.9.1 to 2.9.0 and it's OK now.

@ziyoung
Copy link
Contributor

ziyoung commented Jun 21, 2019

提了一个 pr #16013 大家可以帮忙 review

@zeroxer
Copy link

zeroxer commented Jul 3, 2020

Version

"element-ui": "^2.13.1",
"vue": "^2.5.16"

Solution

height="100%" works for me

<el-table
    :data="tableData"
    height="100%"
    border
    style="width: 100%">

@Rehtt97
Copy link

Rehtt97 commented Dec 1, 2020

give the el-table parent node a height, then give the el-table a samller height then set the el-table min-height 100%;
like this min-height100%

这个方法有用!

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