Various bug fixe, ValveMove to flow repeted 1x, version 1.4.42

This commit is contained in:
Milan Hanajik
2015-05-21 16:39:18 +02:00
parent e94b4f2655
commit d2b76cc58d
4 changed files with 33 additions and 8 deletions
@@ -165,14 +165,14 @@ namespace TBF.Screens
if (MetersArrangement == Forms.ResultsConfig.Meters.Horizontally)
{
flowLayoutPanel.FlowDirection = FlowDirection.LeftToRight;
lvWidth = (flowLayoutPanel.Width + 5) / metersInOneGroup - 5;
lvHeight = (flowLayoutPanel.Height + 5) / nrGroups - 5;
lvWidth = flowLayoutPanel.Width / metersInOneGroup - 6;
lvHeight = flowLayoutPanel.Height / nrGroups - 6;
}
else
{
flowLayoutPanel.FlowDirection = FlowDirection.TopDown;
lvWidth = (flowLayoutPanel.Width + 5) / nrGroups - 5;
lvHeight = (flowLayoutPanel.Height + 5) / metersInOneGroup - 5;
lvWidth = flowLayoutPanel.Width / nrGroups - 6;
lvHeight = flowLayoutPanel.Height / metersInOneGroup - 6;
}
flowLayoutPanel.Controls.Clear();
flowLayoutPanel.WrapContents = true;