Browse Source

tHE CoDe MUsT nOt cOnTAIn mUlTIpLE BLANk liNEs IN a ROw.

CPKreuz 4 years ago
parent
commit
55b43bd690
1 changed files with 1 additions and 2 deletions
  1. 1 2
      PixiEditor/Views/UserControls/AlignableWrapPanel.cs

+ 1 - 2
PixiEditor/Views/UserControls/AlignableWrapPanel.cs

@@ -24,7 +24,7 @@ namespace PixiEditor.Views.UserControls
 
 
             for (int i = 0; i < children.Count; i++)
             for (int i = 0; i < children.Count; i++)
             {
             {
-                UIElement child = children[i] as UIElement;
+                UIElement child = children[i];
 
 
                 // Flow passes its own constraint to children
                 // Flow passes its own constraint to children
                 child.Measure(constraint);
                 child.Measure(constraint);
@@ -50,7 +50,6 @@ namespace PixiEditor.Views.UserControls
                 }
                 }
             }
             }
 
 
-
             panelSize.Width = Math.Max(curLineSize.Width, panelSize.Width);
             panelSize.Width = Math.Max(curLineSize.Width, panelSize.Width);
             panelSize.Height += curLineSize.Height;
             panelSize.Height += curLineSize.Height;