aboutsummaryrefslogtreecommitdiffstatsci
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/GraphicObjects/Border.cs11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/GraphicObjects/Border.cs b/src/GraphicObjects/Border.cs
index f2ce01e2..3f977267 100644
--- a/src/GraphicObjects/Border.cs
+++ b/src/GraphicObjects/Border.cs
@@ -45,16 +45,7 @@ namespace go
protected override Size measureRawSize ()
{
- Size raw = Bounds.Size;
-
- if (Child != null) {
- if (Bounds.Width < 0)
- raw.Width = Child.Slot.Width + 2 * (Margin+BorderWidth);
- if (Bounds.Height < 0)
- raw.Height = Child.Slot.Height + 2 * (Margin+BorderWidth);
- }
-
- return raw;
+ return child == null ? Bounds.Size : child.Slot.Size + 2 * (Margin + BorderWidth);
}
protected override void onDraw (Cairo.Context gr)
{