antvis / S2

⚡️ A practical visualization library for tabular analysis.
https://s2.antv.antgroup.com
MIT License
1.46k stars 193 forks source link

🐛动态设置RowCell字体大小时,行高错位 #2877

Open machachong opened 2 weeks ago

machachong commented 2 weeks ago

🏷 Version

🖋 Description

自定义RowCell单元格样式,动态调整字体大小时,rowcell部分的单元格行高错位,其他CornerCell,ColCell等都是好的

⌨️ Code Snapshots

class CustomRowCell extends RowCell { getTextStyle() { const defaultTextStyle = super.getTextStyle(); return { fontSize: 18, // 动态调整这里 }; } } image

-->

Environment Info
System
Browser
github-actions[bot] commented 2 weeks ago

你好 @machachong,请提供一个可以在线访问的链接, 或者使用 codesandbox 提供示例并详细说明复现步骤 (查看更多模板), 15 天内未回复issue自动关闭。

Hello, @machachong, please provide an accessible link or usage codesandbox to describe the reproduction steps (more template). The issue will be closed without any replay within 15 days.

lijinke666 commented 2 weeks ago

提 issue 前必读