mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-28 23:19:53 +08:00
fix ui error
This commit is contained in:
@@ -51,10 +51,12 @@ namespace Avalonia.Controls
|
||||
this.Position = point;
|
||||
}
|
||||
|
||||
if (vm.SizePosition.Width > 0)
|
||||
if (vm.SizePosition.Width > 0
|
||||
&& Screens.Primary.WorkingArea.Width >= vm.SizePosition.Width)
|
||||
this.Width = vm.SizePosition.Width;
|
||||
|
||||
if (vm.SizePosition.Height > 0)
|
||||
if (vm.SizePosition.Height > 0
|
||||
&& Screens.Primary.WorkingArea.Height >= vm.SizePosition.Height)
|
||||
this.Height = vm.SizePosition.Height;
|
||||
|
||||
HandleResized(new Size(this.Width, this.Height));
|
||||
|
||||
Reference in New Issue
Block a user