diff options
| author | MichaelTheShifter <[email protected]> | 2016-07-23 15:28:07 -0400 |
|---|---|---|
| committer | MichaelTheShifter <[email protected]> | 2016-07-23 15:31:00 -0400 |
| commit | 31027cd3cbd01325a13312feed7566ee746ce89a (patch) | |
| tree | 183849fa709ceca942a9ac9e2daf300cb3653b7f /source/WindowsFormsApplication1 | |
| parent | 5b19fab8d6b101367aaccd3cdcb26e46db9b44f0 (diff) | |
| download | shiftos-c--31027cd3cbd01325a13312feed7566ee746ce89a.tar.gz shiftos-c--31027cd3cbd01325a13312feed7566ee746ce89a.tar.bz2 shiftos-c--31027cd3cbd01325a13312feed7566ee746ce89a.zip | |
Attempt to fix panel buttons.
Diffstat (limited to 'source/WindowsFormsApplication1')
| -rw-r--r-- | source/WindowsFormsApplication1/Desktop/ShiftOSDesktop.cs | 10 |
1 files changed, 10 insertions, 0 deletions
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; |
