* UIDataGridView:增加一个可能出错的判断

This commit is contained in:
Sunny 2021-11-03 22:41:11 +08:00
parent eb6155e82c
commit ebf5a36fd5
2 changed files with 5 additions and 0 deletions

Binary file not shown.

View File

@ -414,6 +414,11 @@ namespace Sunny.UI
private void SetBarPosition()
{
if (VBar == null || HBar == null)
{
return;
}
if (ShowRect)
{
VBar.Left = Width - ScrollBarInfo.VerticalScrollBarWidth() - 2;