aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/TEMP
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-05-28 15:39:37 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-05-28 15:39:37 +0300
commitca5e08ff8e740e63a51447a6b100232215bf4192 (patch)
treead9ec97707b210b0a42657796b1857e50a7620f9 /Software/Visual_Studio/TEMP
parentc6ee9ffa1bffeb9f743d914e6ef0d326c8c27d4c (diff)
downloadTango-ca5e08ff8e740e63a51447a6b100232215bf4192.tar.gz
Tango-ca5e08ff8e740e63a51447a6b100232215bf4192.zip
Redundant.
Diffstat (limited to 'Software/Visual_Studio/TEMP')
-rw-r--r--Software/Visual_Studio/TEMP/Tango.Graphics2D/Drawing2DStackPanel.cs4
1 files changed, 2 insertions, 2 deletions
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;
}