Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@tpto
Copy link
Contributor

@tpto tpto commented Feb 14, 2025

What

火狐浏览器,Crud设置autoFillHeight后,如果无数据,表头被拉伸

image

正常情况

autoFillHeight:true (暂无数据 居中)

image

autoFillHeight:false

image

Why

产生原因

火狐浏览器下,table外层设置固定高度、table设置min-height:100%后,会被拉伸

image

相关pr

#11419

为什么文档中demo正常?

image

计算得到的高度为负值,高度未生效,等同于autoFillHeight:false

How

项目中已计算thead大小,利用tableContentHeight获得tbody大小

@github-actions
Copy link

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

@github-actions github-actions bot added the fix label Feb 14, 2025
@hsm-lv hsm-lv merged commit 50fae24 into baidu:master Feb 20, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants