* UIDataGridView:解决水平滚动条在有列冻结时出错的问题

This commit is contained in:
Sunny 2020-09-29 21:36:45 +08:00
parent df2bcd9d12
commit 415efadfc7
7 changed files with 8 additions and 8 deletions

Binary file not shown.

Binary file not shown.

View File

@ -109,7 +109,7 @@ namespace Sunny.UI
float xx = barX + x1 * (i + 1) + x2 * i + x1;
float ww = Math.Min(x2, series.MaxWidth);
xx = xx - ww / 2.0f;
xx -= ww / 2.0f;
if (YAxisStart >= 0)
{

View File

@ -100,7 +100,7 @@ namespace Sunny.UI
float xx = barX + DrawSize.Width * 1.0f / DataCount / 2;
float ww = Math.Min(x2, series.MaxWidth);
xx = xx - ww / 2.0f;
xx -= ww / 2.0f;
if (YAxisStart >= 0)
{
@ -187,7 +187,7 @@ namespace Sunny.UI
xx = barX + x1 * ((j + 1) * 3 - 1);
float ww = Math.Min(x2, series.MaxWidth);
xx = xx - ww / 2.0f;
xx -= ww / 2.0f;
if (YAxisStart >= 0)
{
@ -442,7 +442,7 @@ namespace Sunny.UI
{
g.DrawLine(ChartStyle.ForeColor, DrawOrigin.X, start, Width - BarOption.Grid.Right, start);
float lineStart = DrawOrigin.X;
// float lineStart = DrawOrigin.X;
// for (int j = 0; j <= BarOption.Series.Count; j++)
// {
// g.DrawLine(ChartStyle.ForeColor, lineStart, start, lineStart, start + BarOption.XAxis.AxisTick.Length);

View File

@ -173,8 +173,8 @@ namespace Sunny.UI
{
HBar.Maximum = HorizontalScrollBar.Maximum;
HBar.Value = HorizontalScrollBar.Value;
HBar.BoundsWidth = HorizontalScrollBar.Bounds.Width;
HBar.LargeChange = HorizontalScrollBar.Maximum / VisibleColumnCount();
HBar.BoundsWidth = HorizontalScrollBar.LargeChange;
HBar.LargeChange = HorizontalScrollBar.LargeChange;//.Maximum / VisibleColumnCount();
HBar.Visible = true;
}
else

View File

@ -402,7 +402,7 @@ namespace Sunny.UI
protected override void OnMeasureItem(MeasureItemEventArgs e)
{
e.ItemHeight = e.ItemHeight + ItemHeight;
e.ItemHeight += ItemHeight;
}
/// <summary>

View File

@ -569,7 +569,7 @@ namespace Sunny.UI
protected override void OnMeasureItem(MeasureItemEventArgs e)
{
base.OnMeasureItem(e);
e.ItemHeight = e.ItemHeight + ItemHeight;
e.ItemHeight += ItemHeight;
}
public void SelectedFirst()