浏览代码

Fix layer max width and height bug on resize canvas

flabbet 5 年之前
父节点
当前提交
d7153aba49
共有 1 个文件被更改,包括 2 次插入0 次删除
  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;