From 31027cd3cbd01325a13312feed7566ee746ce89a Mon Sep 17 00:00:00 2001 From: MichaelTheShifter Date: Sat, 23 Jul 2016 15:28:07 -0400 Subject: Attempt to fix panel buttons. --- source/WindowsFormsApplication1/Desktop/ShiftOSDesktop.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source/WindowsFormsApplication1/Desktop/ShiftOSDesktop.cs') diff --git a/source/WindowsFormsApplication1/Desktop/ShiftOSDesktop.cs b/source/WindowsFormsApplication1/Desktop/ShiftOSDesktop.cs index 373461e..36ae34b 100644 --- a/source/WindowsFormsApplication1/Desktop/ShiftOSDesktop.cs +++ b/source/WindowsFormsApplication1/Desktop/ShiftOSDesktop.cs @@ -170,6 +170,16 @@ namespace ShiftOS private void ShiftOSDesktop_Load(object sender, EventArgs e) { + this.pnlpanelbuttonholder.AutoSize = false; + this.pnlpanelbuttonholder.ControlAdded += (o, a) => + { + pnlpanelbuttonholder.Width += a.Control.Width + API.CurrentSkin.panelbuttongap; + }; + this.pnlpanelbuttonholder.ControlRemoved += (o, a) => + { + pnlpanelbuttonholder.Width -= a.Control.Width + API.CurrentSkin.panelbuttongap; + }; + Viruses.CheckForInfected(); this.ShowInTaskbar = false; this.FormBorderStyle = FormBorderStyle.None; -- cgit v1.2.3