Browse Source

Reversed tight bounds preview

flabbet 3 years ago
parent
commit
719598fd13
1 changed files with 7 additions and 5 deletions
  1. 7 5
      PixiEditor/Views/UserControls/PlainLayerView.xaml.cs

+ 7 - 5
PixiEditor/Views/UserControls/PlainLayerView.xaml.cs

@@ -119,11 +119,13 @@ namespace PixiEditor.Views.UserControls
 
         private static Int32Rect GetTightBounds(Layer targetLayer)
         {
-            var tightBounds = targetLayer.TightBounds;
-            if (tightBounds.IsEmpty)
-            {
-                tightBounds = new Int32Rect(0, 0, targetLayer.Width, targetLayer.Height);
-            }
+            //var tightBounds = targetLayer.TightBounds;
+            //if (tightBounds.IsEmpty)
+            //{
+            //    tightBounds = new Int32Rect(0, 0, targetLayer.Width, targetLayer.Height);
+            //}
+
+            var tightBounds = new Int32Rect(0, 0, targetLayer.Width, targetLayer.Height);
 
             return tightBounds;
         }