-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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 height ignores CSS variable expression #15829
Comments
Translation of this issue: Element UI version2.9.1 OS/Browsers versionMac Chrome V74 Vue version2.6.10 Reproduction LinkHttps://codepen.io/anon/pen/PvxdaX Steps to reproduce
What is Expected?Table document description: If the height is of string type, the height is set to the value of style. height of Table. Cal (90vh - 280px) is a valid CSS expression and should be set to style. height as string. What is actually happening?String type height seems to introduce legitimacy checking, which leads to the neglect of CSS computational expressions. Forcing the height to style also requires scrolling. |
+1 |
Just found a similar issue,【height="100%"】 is rendered as 【style="height:100px"】, please fix ASAP since this bug has caused dozens of issues in my application. |
+1 |
1 similar comment
+1 |
Duplicate of #15806 |
Element UI version
2.9.1
OS/Browsers version
Mac Chrome v74
Vue version
2.6.10
Reproduction Link
https://codepen.io/anon/pen/PvxdaX
Steps to reproduce
What is Expected?
Table文档描述:如果 height 为 string 类型,则这个高度会设置为 Table 的 style.height 的值。
calc(90vh - 280px)属于合法的CSS计算表达式,应该被当成string设置成style.height
What is actually happening?
string类型的height貌似引入了合法性检查,导致CSS计算表达式被忽略。强制把height改成style,还需要处理滚动问题
The text was updated successfully, but these errors were encountered: