aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/WinformsDesktop.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.WinForms/WinformsDesktop.cs')
-rw-r--r--ShiftOS.WinForms/WinformsDesktop.cs7
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();