Open IceReaper opened 2 years ago
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.
When using Scale, a message box for example is opened outside of the ui. As a workaround i was able to do this: