Fixed Issue 178.
1.1 --- a/GUI/SensorGadget.cs Wed Mar 16 22:10:26 2011 +0000
1.2 +++ b/GUI/SensorGadget.cs Thu Mar 17 20:16:01 2011 +0000
1.3 @@ -362,9 +362,10 @@
1.4 y += hardwareLineHeight;
1.5 }
1.6 y += pair.Value.Count * sensorLineHeight;
1.7 - }
1.8 + }
1.9 + if (sensors.Count == 0)
1.10 + y += 4 * sensorLineHeight + hardwareLineHeight;
1.11 y += bottomMargin;
1.12 - y = Math.Max(y, topBorder + hardwareLineHeight + bottomBorder);
1.13 this.Size = new Size(width, y);
1.14 }
1.15
1.16 @@ -426,7 +427,9 @@
1.17
1.18 if (sensors.Count == 0) {
1.19 x = leftBorder + 1;
1.20 - g.DrawString("Add a sensor ...", smallFont, Brushes.White,
1.21 + g.DrawString("Right-click on a sensor in the main window and select " +
1.22 + "\"Show in Gadget\" to show the sensor here.",
1.23 + smallFont, Brushes.White,
1.24 new Rectangle(x, y - 1, w - rightBorder - x, 0));
1.25 }
1.26