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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user