Browse Source

Fix layer max width and height bug on resize canvas

flabbet 5 years ago
parent
commit
d7153aba49
1 changed files with 2 additions and 0 deletions
  1. 2 0
      PixiEditor/Models/DataHolders/Document.cs

+ 2 - 0
PixiEditor/Models/DataHolders/Document.cs

@@ -173,6 +173,8 @@ namespace PixiEditor.Models.DataHolders
             for (int i = 0; i < Layers.Count; i++)
             {
                 Layers[i].Offset = offset[i];
+                Layers[i].MaxWidth = newWidth;
+                Layers[i].MaxHeight = newHeight;
             }
 
             Width = newWidth;