浏览代码

Reverted one of the fixes

Krzysztof Krysiński 3 年之前
父节点
当前提交
7a6718d42d
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 0 1
      PixiEditor/Models/DataHolders/Document/Document.Operations.cs
  2. 2 0
      PixiEditor/Models/Layers/Layer.cs

+ 0 - 1
PixiEditor/Models/DataHolders/Document/Document.Operations.cs

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

+ 2 - 0
PixiEditor/Models/Layers/Layer.cs

@@ -209,6 +209,8 @@ namespace PixiEditor.Models.Layers
 
         public bool IsReset { get; private set; }
 
+        public Int32Rect TightBounds => GetContentDimensions();
+
         public event EventHandler<Int32Rect> LayerBitmapChanged;
 
         public void InvokeLayerBitmapChange()