From 0b005fefe69b67bf335c3c00944bbac73e8b4831 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Mon, 21 Mar 2016 08:53:31 +0100 Subject: remove Bounds rectangle as private field for dims --- src/GraphicObjects/GenericStack.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/GraphicObjects/GenericStack.cs') diff --git a/src/GraphicObjects/GenericStack.cs b/src/GraphicObjects/GenericStack.cs index 362143fa..925f908a 100644 --- a/src/GraphicObjects/GenericStack.cs +++ b/src/GraphicObjects/GenericStack.cs @@ -221,14 +221,14 @@ namespace Crow switch (arg.LayoutType) { case LayoutingType.Width: if (Orientation == Orientation.Horizontal) { - if (this.Bounds.Width < 0) + if (Width < 0) this.RegisterForLayouting (LayoutingType.Width); this.RegisterForLayouting (LayoutingType.ArrangeChildren); } break; case LayoutingType.Height: if (Orientation == Orientation.Vertical) { - if (this.Bounds.Height < 0) + if (Height < 0) this.RegisterForLayouting (LayoutingType.Height); this.RegisterForLayouting (LayoutingType.ArrangeChildren); } -- cgit v1.3.1-4-g156e