Myra icon indicating copy to clipboard operation
Myra copied to clipboard

Scale should impact the viewport!

Open IceReaper opened this issue 3 years ago • 1 comments

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)));
}

IceReaper avatar Oct 13 '22 11:10 IceReaper

Found some more cases. In general scale does not make elements use the right layout bounds.

IceReaper avatar Oct 13 '22 15:10 IceReaper