* UIRadioButtonGroup,UICheckBoxGroup:修正调整ItemSize无效的Bug

This commit is contained in:
Sunny 2020-07-03 21:40:58 +08:00
parent 0d19046f76
commit e605818e31
5 changed files with 4 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -110,6 +110,7 @@ namespace Sunny.UI
{
UICheckBox box = new UICheckBox
{
BackColor = Color.Transparent,
Font = Font,
Parent = this,
Tag = i,
@ -132,6 +133,7 @@ namespace Sunny.UI
boxes[i].Left = startX + ItemSize.Width * columnIndex + ColumnInterval * columnIndex;
boxes[i].Top = startY + ItemSize.Height * rowIndex + RowInterval * rowIndex;
boxes[i].Size = ItemSize;
boxes[i].Show();
}
}

View File

@ -94,6 +94,7 @@ namespace Sunny.UI
{
UIRadioButton button = new UIRadioButton
{
BackColor = Color.Transparent,
Font = Font,
Parent = this,
Tag = i,
@ -116,6 +117,7 @@ namespace Sunny.UI
buttons[i].Left = startX + ItemSize.Width * columnIndex + ColumnInterval * columnIndex;
buttons[i].Top = startY + ItemSize.Height * rowIndex + RowInterval * rowIndex;
buttons[i].Size = ItemSize;
buttons[i].Show();
}
}