fix(Table): throw exception when resize window on enable detail and fix header (#4037)

* fix: throw exception when resize window

* chore: bump version 8.8.3-beta02
This commit is contained in:
Argo Zhang 2024-08-12 22:07:35 +08:00 committed by GitHub
parent 3554cc95ef
commit 04026f7f29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<Version>8.8.3-beta01</Version>
<Version>8.8.3-beta02</Version>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">

View File

@ -303,8 +303,8 @@ const setBodyHeight = table => {
card.style.height = `calc(100% - ${bodyHeight}px)`
}
else {
const body = table.body || table.tables[0]
if (bodyHeight > 0) {
const body = table.body || table.tables[0];
if (bodyHeight > 0 && body && body.parentNode) {
body.parentNode.style.height = `calc(100% - ${bodyHeight}px)`
}
let headerHeight = 0