diff --git a/PrinterControls/ControlWidgets/FanControls.cs b/PrinterControls/ControlWidgets/FanControls.cs index 603221b07..591aa5333 100644 --- a/PrinterControls/ControlWidgets/FanControls.cs +++ b/PrinterControls/ControlWidgets/FanControls.cs @@ -79,6 +79,7 @@ namespace MatterHackers.MatterControl.PrinterControls SetDisplayAttributes(); fanSpeedDisplay = new EditableNumberDisplay(textImageButtonFactory, "{0}%".FormatWith(PrinterConnectionAndCommunication.Instance.FanSpeed0To255.ToString()), "100%"); + fanSpeedDisplay.VAnchor = VAnchor.ParentCenter; fanSpeedDisplay.EditComplete += (sender, e) => { PrinterConnectionAndCommunication.Instance.FanSpeed0To255 = (int)(fanSpeedDisplay.GetValue() * 255.5 / 100); @@ -130,7 +131,6 @@ namespace MatterHackers.MatterControl.PrinterControls fanToggleSwitchText = new TextWidget (fanActive?"On":"Off", pointSize: 10, textColor: ActiveTheme.Instance.PrimaryTextColor); fanToggleSwitchText.VAnchor = Agg.UI.VAnchor.ParentCenter; - toggleSwitch = toggleSwitchFactory.GenerateGivenTextWidget (fanToggleSwitchText,"On","Off", fanActive); toggleSwitch.VAnchor = Agg.UI.VAnchor.ParentCenter; toggleSwitch.SwitchStateChanged += new EventHandler (ToggleSwitch_Click);