Bug fix - more robust.
This commit is contained in:
parent
cf236d94b8
commit
ef75c30af9
@ -310,16 +310,19 @@ namespace Results.Forms
|
|||||||
oneHeight = Math.Max(MinHeight, flowLayoutPanel.Height / metersInOneGroup - 6);
|
oneHeight = Math.Max(MinHeight, flowLayoutPanel.Height / metersInOneGroup - 6);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Update size of controls
|
if (wmRsltsCtrl != null)
|
||||||
flowLayoutPanel.SuspendLayout();
|
|
||||||
///
|
|
||||||
foreach (var oneCtrl in wmRsltsCtrl)
|
|
||||||
{
|
{
|
||||||
oneCtrl.Width = oneWidth;
|
/// Update size of controls
|
||||||
oneCtrl.Height = oneHeight;
|
flowLayoutPanel.SuspendLayout();
|
||||||
|
///
|
||||||
|
foreach (var oneCtrl in wmRsltsCtrl)
|
||||||
|
{
|
||||||
|
oneCtrl.Width = oneWidth;
|
||||||
|
oneCtrl.Height = oneHeight;
|
||||||
|
}
|
||||||
|
///
|
||||||
|
flowLayoutPanel.ResumeLayout();
|
||||||
}
|
}
|
||||||
///
|
|
||||||
flowLayoutPanel.ResumeLayout();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user