# HG changeset patch # User moel.mich # Date 1300392961 0 # Node ID 575f8d4c378dc851514cf6d87259ac5ac5f7e88b # Parent 8731a1b8130186fa15e7d939c9418573a935013f Fixed Issue 178. diff -r 8731a1b81301 -r 575f8d4c378d GUI/SensorGadget.cs --- a/GUI/SensorGadget.cs Wed Mar 16 22:10:26 2011 +0000 +++ b/GUI/SensorGadget.cs Thu Mar 17 20:16:01 2011 +0000 @@ -362,9 +362,10 @@ y += hardwareLineHeight; } y += pair.Value.Count * sensorLineHeight; - } + } + if (sensors.Count == 0) + y += 4 * sensorLineHeight + hardwareLineHeight; y += bottomMargin; - y = Math.Max(y, topBorder + hardwareLineHeight + bottomBorder); this.Size = new Size(width, y); } @@ -426,7 +427,9 @@ if (sensors.Count == 0) { x = leftBorder + 1; - g.DrawString("Add a sensor ...", smallFont, Brushes.White, + g.DrawString("Right-click on a sensor in the main window and select " + + "\"Show in Gadget\" to show the sensor here.", + smallFont, Brushes.White, new Rectangle(x, y - 1, w - rightBorder - x, 0)); }