Myra
Myra copied to clipboard
Scale should impact the viewport!
When using Scale, a message box for example is opened outside of the ui. As a workaround i was able to do this:
protected Screen()
{
this.Desktop = new() { BoundsFetcher = this.GetDesktopBounds };
}
private Rectangle GetDesktopBounds()
{
return new(this.bounds.Location, new((int)(this.bounds.Size.X / this.Desktop.Scale.X), (int)(this.bounds.Size.Y / this.Desktop.Scale.Y)));
}
Found some more cases. In general scale does not make elements use the right layout bounds.