aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/Border.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2015-05-02 09:19:19 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2015-05-02 09:19:19 +0200
commit40392cc3bcaee5b67d85b0aabfd42d2881823bd6 (patch)
tree809bc55854f13cb031d26129e7db24076119bca0 /src/GraphicObjects/Border.cs
parentc88d3c2e0b3e9e69df5f1879b9d8935d3ae0d390 (diff)
Layouting queue, debug
test4 validated
Diffstat (limited to 'src/GraphicObjects/Border.cs')
-rw-r--r--src/GraphicObjects/Border.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GraphicObjects/Border.cs b/src/GraphicObjects/Border.cs
index 281db215..e2451582 100644
--- a/src/GraphicObjects/Border.cs
+++ b/src/GraphicObjects/Border.cs
@@ -48,9 +48,9 @@ namespace go
Size raw = Bounds.Size;
if (child != null) {
- if (Bounds.Width < 0 && child.WIsValid)
+ if (Bounds.Width < 0)
raw.Width = child.Slot.Width + 2 * (Margin+BorderWidth);
- if (Bounds.Height < 0 && child.HIsValid)
+ if (Bounds.Height < 0)
raw.Height = child.Slot.Height + 2 * (Margin+BorderWidth);
}