Skip to content

Table 在 ShowModal 中出现高度样式错误 #3296

Answered by ArgoZhang
LostRoy asked this question in Q&A
Discussion options

You must be logged in to vote

@LostRoy 请更新复现工程链接,提交 Issue 尽量正规。这个问题是非常常见的问题

blazorWeb 发开框架,所以要遵循其特点,描述高度的时候,要有一个概念,父容器的高度与自身的高度,从图片中可以看出,是 Table 组件的高度 400px 溢出了父容器 Dialog 身体内部高度,这就是问题的根本原因。

解决办法

  1. 给定弹窗样式用于后面对 Table 组件定位使用
  2. site.css 样式表中给定弹窗 dialog-body 高度

Table 组件是自适应高度组件,无需你设置 400 你这个高度只能设置 Table 自身高度为 400px 如果弹窗 body 小于 400px 时就会出现图片中的问题

请点击👇 make as anwser

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by LostRoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #3293 on April 17, 2024 01:53.