Browse Source

Merge branch 'master' into fixes/2390-command-leak

pull/2413/head
danwalmsley 7 years ago
committed by GitHub
parent
commit
fb6ffce908
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Avalonia.Controls/Primitives/PopupRoot.cs

4
src/Avalonia.Controls/Primitives/PopupRoot.cs

@ -91,12 +91,12 @@ namespace Avalonia.Controls.Primitives
if (screenX > screen.Bounds.Width)
{
Position = Position.WithX(Position.X - screenX - bounds.Width);
Position = Position.WithX(Position.X - (screenX - screen.Bounds.Width));
}
if (screenY > screen.Bounds.Height)
{
Position = Position.WithY(Position.Y - screenY - bounds.Height);
Position = Position.WithY(Position.Y - (screenY - screen.Bounds.Height));
}
}
}

Loading…
Cancel
Save