Use default window bounds or overrides
This commit is contained in:
parent
4ed9724634
commit
288352a3a7
1 changed files with 5 additions and 1 deletions
|
|
@ -592,7 +592,11 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
AutomationRunner.TimeToMoveMouse = config.TimeToMoveMouse;
|
||||
AutomationRunner.UpDelaySeconds = config.MouseUpDelay;
|
||||
|
||||
rootSystemWindow = Application.LoadRootWindow(overrideWidth, overrideHeight);
|
||||
var (width, height) = RootSystemWindow.GetStartupBounds();
|
||||
|
||||
rootSystemWindow = Application.LoadRootWindow(
|
||||
overrideWidth == -1 ? width : overrideWidth,
|
||||
overrideHeight == -1 ? height : overrideHeight);
|
||||
|
||||
await AutomationRunner.ShowWindowAndExecuteTests(
|
||||
rootSystemWindow,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue