|
|
|
@ -322,10 +322,9 @@ namespace Avalonia.Controls.UnitTests |
|
|
|
{ |
|
|
|
var window = new Window(); |
|
|
|
window.WindowStartupLocation = WindowStartupLocation.CenterOwner; |
|
|
|
window.Position = new PixelPoint(60, 40); |
|
|
|
window.Owner = parentWindow; |
|
|
|
window.Position = new PixelPoint(60, 40); |
|
|
|
|
|
|
|
window.Show(); |
|
|
|
window.ShowDialog(parentWindow); |
|
|
|
|
|
|
|
var expectedPosition = new PixelPoint( |
|
|
|
(int)(parentWindow.Position.X + parentWindow.ClientSize.Width / 2 - window.ClientSize.Width / 2), |
|
|
|
|