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

fix: Firefox浏览器Crud设置autoFillHeight,无数据时表头被拉伸 #11611

Merged
merged 1 commit into from
Feb 20, 2025

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大小

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