diff options
| author | Michael <[email protected]> | 2017-05-31 08:40:29 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-31 08:40:29 -0400 |
| commit | 3dd402277bba874f24fab11865d257133c6f782c (patch) | |
| tree | 35feb3a128b9b3f8a830c3e37c5d8bebb58515fa /ShiftOS.WinForms/WinformsDesktop.cs | |
| parent | ecf5297dbb9fd551005963dc1d430ed348848390 (diff) | |
| download | shiftos_thereturn-3dd402277bba874f24fab11865d257133c6f782c.tar.gz shiftos_thereturn-3dd402277bba874f24fab11865d257133c6f782c.tar.bz2 shiftos_thereturn-3dd402277bba874f24fab11865d257133c6f782c.zip | |
Fix sizing issue with notifications, and UP key in terminal
Diffstat (limited to 'ShiftOS.WinForms/WinformsDesktop.cs')
| -rw-r--r-- | ShiftOS.WinForms/WinformsDesktop.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/WinformsDesktop.cs b/ShiftOS.WinForms/WinformsDesktop.cs index 76c5050..643c02a 100644 --- a/ShiftOS.WinForms/WinformsDesktop.cs +++ b/ShiftOS.WinForms/WinformsDesktop.cs @@ -74,6 +74,10 @@ namespace ShiftOS.WinForms { lbnotemsg.Text = msg; lbnotetitle.Text = title; + int height = pnlnotificationbox.Height; + pnlnotificationbox.AutoSize = false; + pnlnotificationbox.Height = height; + pnlnotificationbox.Width = lbnotetitle.Width; var ctl = flnotifications.Controls.ToList().FirstOrDefault(x => x.Tag.ToString() == app); if (ctl == null) @@ -97,8 +101,11 @@ namespace ShiftOS.WinForms notekiller.Tick += (o, a) => { pnlnotificationbox.Hide(); + pnlnotificationbox.AutoSize = true; }; Engine.AudioManager.PlayStream(Properties.Resources.infobox); + + pnlnotificationbox.Show(); pnlnotificationbox.BringToFront(); notekiller.Start(); |
