Browse Source

allocate viewport allows dpi to be overriden.

Dan Walmsley 7 years ago
parent
commit
1078bff534
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Avalonia.Controls/Remote/Server/RemoteServerTopLevelImpl.cs

+ 1 - 0
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();
                             });