fix(图表): 修复表格显示总计时滚动条遮挡内容 #15244 #15210 (#15425)

This commit is contained in:
wisonic-s
2025-03-20 14:47:18 +08:00
committed by GitHub
parent 086a5156b3
commit 8dbfb10241

View File

@@ -1935,10 +1935,9 @@ export const summaryRowStyle = (newChart, newData, tableCell, tableHeader, showS
const totalHeight =
tableHeader.tableTitleHeight * headerAndSummaryHeight +
tableCell.tableItemHeight * (newData.length - 1)
if (totalHeight < newChart.options.height) {
// 6 是阴影高度
if (totalHeight < newChart.container.cfg.height) {
newChart.options.height =
totalHeight < newChart.options.height - 6 ? totalHeight + 6 : totalHeight
totalHeight < newChart.container.cfg.height - 8 ? totalHeight + 8 : totalHeight
}
})
}