优化tableView单元格绘制超出的bug

This commit is contained in:
睿 安
2026-01-29 20:24:18 +08:00
parent e22a779dda
commit ab7ee978e7
7 changed files with 5 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -431,6 +431,9 @@ namespace ezui {
return;
}
// 裁剪到单元格区域,避免内容溢出
g.PushAxisAlignedClip(RectF(cellRect));
// 确定前景色
Color foreColor = m_cellForeColor;
if (cellData.Style.HasForeColor) {
@@ -500,6 +503,8 @@ namespace ezui {
}
}
g.PopAxisAlignedClip();
// 绘制边框
StrokeStyle borderStyle = m_cellBorderStyle;
Color borderColor = m_cellBorderColor;