mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-26 06:28:35 +01:00
fixed android screen sizes being incorrect
This commit is contained in:
parent
9db6a52999
commit
c16c2ef693
1 changed files with 2 additions and 2 deletions
|
@ -72,11 +72,11 @@ namespace MLEM.Ui {
|
|||
this.GraphicsDevice = device;
|
||||
this.Window = window;
|
||||
this.style = style;
|
||||
this.Viewport = device.Viewport.Bounds;
|
||||
this.Viewport = new Rectangle(Point.Zero, window.ClientBounds.Size);
|
||||
this.AutoScaleReferenceSize = this.Viewport.Size;
|
||||
|
||||
window.ClientSizeChanged += (sender, args) => {
|
||||
this.Viewport = device.Viewport.Bounds;
|
||||
this.Viewport = new Rectangle(Point.Zero, window.ClientBounds.Size);
|
||||
foreach (var root in this.rootElements)
|
||||
root.Element.ForceUpdateArea();
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue