fix: Firefox浏览器Crud设置autoFillHeight,无数据时表头被拉伸 #11611
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
火狐浏览器,Crud设置autoFillHeight后,如果无数据,表头被拉伸
正常情况
autoFillHeight:true (暂无数据 居中)
autoFillHeight:false
Why
产生原因
火狐浏览器下,table外层设置固定高度、table设置min-height:100%后,会被拉伸
相关pr
#11419
为什么文档中demo正常?
计算得到的高度为负值,高度未生效,等同于autoFillHeight:false
How
项目中已计算thead大小,利用tableContentHeight获得tbody大小