优化tableView单元格绘制超出的bug
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user