From ca5e08ff8e740e63a51447a6b100232215bf4192 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 28 May 2019 15:39:37 +0300 Subject: Redundant. --- Software/Visual_Studio/TEMP/Tango.Graphics2D/Drawing2DStackPanel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Software/Visual_Studio/TEMP') diff --git a/Software/Visual_Studio/TEMP/Tango.Graphics2D/Drawing2DStackPanel.cs b/Software/Visual_Studio/TEMP/Tango.Graphics2D/Drawing2DStackPanel.cs index e27e0435f..eac848d36 100644 --- a/Software/Visual_Studio/TEMP/Tango.Graphics2D/Drawing2DStackPanel.cs +++ b/Software/Visual_Studio/TEMP/Tango.Graphics2D/Drawing2DStackPanel.cs @@ -92,11 +92,11 @@ namespace Tango.Graphics2D double width = element.Width; double height = element.Height; - if (double.IsNaN(width)) + if (double.IsNaN(width) && Orientation == Orientation.Vertical) { width = ActualWidth; } - if (double.IsNaN(height)) + if (double.IsNaN(height) && Orientation == Orientation.Horizontal) { height = ActualHeight; } -- cgit v1.3.1