1、修复UITreeView横向滚动条滚动无效的问题
2、优化树节点Checked判断
This commit is contained in:
parent
f98cf046bb
commit
a756a94193
@ -740,7 +740,7 @@ namespace Sunny.UI
|
||||
}
|
||||
else
|
||||
{
|
||||
var drawOffsetX = e.Node.Bounds.X-57;
|
||||
var drawOffsetX = e.Node.Bounds.X-57-e.Node.Level * Indent;
|
||||
var drawLeft = (e.Node.Level + 1) * Indent + 3+ drawOffsetX;
|
||||
var checkBoxLeft = (e.Node.Level + 1) * Indent + 1+ drawOffsetX;
|
||||
var imageLeft = drawLeft;
|
||||
@ -801,9 +801,7 @@ namespace Sunny.UI
|
||||
}
|
||||
|
||||
if (CheckBoxes)
|
||||
{
|
||||
|
||||
|
||||
{
|
||||
if (!e.Node.Checked)
|
||||
{
|
||||
e.Graphics.DrawRectangle(checkboxColor,
|
||||
|
Loading…
x
Reference in New Issue
Block a user