Browse Source

allocate viewport allows dpi to be overriden.

pull/1975/head
Dan Walmsley 8 years ago
parent
commit
1078bff534
  1. 1
      src/Avalonia.Controls/Remote/Server/RemoteServerTopLevelImpl.cs

1
src/Avalonia.Controls/Remote/Server/RemoteServerTopLevelImpl.cs

@ -81,6 +81,7 @@ namespace Avalonia.Controls.Remote.Server
allocation = _pendingAllocation;
_pendingAllocation = null;
}
_dpi = new Vector(allocation.DpiX, allocation.DpiY);
ClientSize = new Size(allocation.Width, allocation.Height);
RenderIfNeeded();
});

Loading…
Cancel
Save