* UIDataGridView:解决水平滚动条在有列冻结时出错的问题
This commit is contained in:
parent
df2bcd9d12
commit
415efadfc7
BIN
Bin/SunnyUI.dll
BIN
Bin/SunnyUI.dll
Binary file not shown.
BIN
Bin/SunnyUI.pdb
BIN
Bin/SunnyUI.pdb
Binary file not shown.
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
@ -402,7 +402,7 @@ namespace Sunny.UI
|
||||
|
||||
protected override void OnMeasureItem(MeasureItemEventArgs e)
|
||||
{
|
||||
e.ItemHeight = e.ItemHeight + ItemHeight;
|
||||
e.ItemHeight += ItemHeight;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user