fixed position of sprite

This commit is contained in:
NaBian committed 2021-01-16 22:13:17 +08:00
1 parent 41566e8829
commit 95b0fa6d29
1 file changed
+5
@@ -18,6 +18,11 @@ namespace HandyControl.Controls
};
sprite.Show();
var desktopWorkingArea = SystemParameters.WorkArea;
sprite.Left = desktopWorkingArea.Width - sprite.ActualWidth - 50;
sprite.Top = 50 - sprite.Padding.Top;
return sprite;
}
}