# HG changeset patch # User moel.mich # Date 1302466940 0 # Node ID c26ff31e7b54c5709096396223766d70ca291ac9 # Parent 2687ac753d905e1ff3bac7aca7ad64c61e5c2029 Fixed the tree view row height on Linux. diff -r 2687ac753d90 -r c26ff31e7b54 GUI/MainForm.cs --- a/GUI/MainForm.cs Sat Apr 09 20:16:42 2011 +0000 +++ b/GUI/MainForm.cs Sun Apr 10 20:22:20 2011 +0000 @@ -90,8 +90,7 @@ this.Font = SystemFonts.MessageBoxFont; treeView.Font = SystemFonts.MessageBoxFont; - plotPanel.Font = SystemFonts.MessageBoxFont; - treeView.RowHeight = Math.Max(treeView.Font.Height + 1, 17); + plotPanel.Font = SystemFonts.MessageBoxFont; nodeCheckBox.IsVisibleValueNeeded += nodeCheckBox_IsVisibleValueNeeded; nodeCheckBox.CheckStateChanged += UpdatePlotSelection; @@ -121,6 +120,7 @@ int p = (int)Environment.OSVersion.Platform; if ((p == 4) || (p == 128)) { // Unix + treeView.RowHeight = Math.Max(treeView.RowHeight, 17); splitContainer.BorderStyle = BorderStyle.None; splitContainer.Border3DStyle = Border3DStyle.Adjust; splitContainer.SplitterWidth = 4; @@ -129,6 +129,8 @@ gadgetMenuItem.Visible = false; minCloseMenuItem.Visible = false; } else { // Windows + treeView.RowHeight = Math.Max(treeView.Font.Height + 1, 17); + gadget = new SensorGadget(computer, settings, unitManager); gadget.HideShowCommand += hideShowClick;