1
0
mirror of https://github.com/Ylianst/MeshCentralRouter synced 2025-12-19 01:33:36 +00:00

allow column resizes correctly (#83)

This commit is contained in:
Simon Smith
2024-06-27 15:14:32 +01:00
committed by GitHub
parent 32f06ee25e
commit 5e0d927dc4
2 changed files with 0 additions and 34 deletions

View File

@@ -1062,22 +1062,6 @@ namespace MeshCentralRouter
}
}
bool bRightCWChangedBusy = false;
private void rightListView_ColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e)
{
if(bRightCWChangedBusy) return;
bRightCWChangedBusy=true;
try
{
if(rightListView.Columns[0].Width != (rightListView.Width - rightListView.Columns[1].Width - 150))
{
rightListView.Columns[0].Width = rightListView.Width - rightListView.Columns[1].Width - 150;
}
}
catch { }
bRightCWChangedBusy = false;
}
private void leftListView_Resize(object sender, EventArgs e)
{
if(leftListView.Columns[0].Width != (leftListView.Width - leftListView.Columns[1].Width - 150))
@@ -1086,22 +1070,6 @@ namespace MeshCentralRouter
}
}
bool bLeftCWChangedBusy = false;
private void leftListView_ColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e)
{
if(bLeftCWChangedBusy) return;
bLeftCWChangedBusy=true;
try
{
if(leftListView.Columns[0].Width != (leftListView.Width - leftListView.Columns[1].Width - 150))
{
leftListView.Columns[0].Width = leftListView.Width - leftListView.Columns[1].Width - 150;
}
}
catch { }
bLeftCWChangedBusy = false;
}
private void updateTimer_Tick(object sender, EventArgs e)
{
updateTimer.Enabled = false;