优化tableView单元格绘制超出的bug
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -431,6 +431,9 @@ namespace ezui {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 裁剪到单元格区域,避免内容溢出
|
||||||
|
g.PushAxisAlignedClip(RectF(cellRect));
|
||||||
|
|
||||||
// 确定前景色
|
// 确定前景色
|
||||||
Color foreColor = m_cellForeColor;
|
Color foreColor = m_cellForeColor;
|
||||||
if (cellData.Style.HasForeColor) {
|
if (cellData.Style.HasForeColor) {
|
||||||
@@ -500,6 +503,8 @@ namespace ezui {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g.PopAxisAlignedClip();
|
||||||
|
|
||||||
// 绘制边框
|
// 绘制边框
|
||||||
StrokeStyle borderStyle = m_cellBorderStyle;
|
StrokeStyle borderStyle = m_cellBorderStyle;
|
||||||
Color borderColor = m_cellBorderColor;
|
Color borderColor = m_cellBorderColor;
|
||||||
|
|||||||
Reference in New Issue
Block a user