aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/Popper.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-07-19 03:35:12 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2016-07-19 03:35:12 +0200
commitb24beece9ed58b2700dd5d2d56fa45e446567ab0 (patch)
tree8930bbda0c8b8a216718fe986eb3ef5c9635ef75 /src/GraphicObjects/Popper.cs
parent762161320ddf4bcad8b201cc9170f617f4ec2bed (diff)
lots of unordered changes, I commited all in a devel branch, which will be the programming branch
Diffstat (limited to 'src/GraphicObjects/Popper.cs')
-rw-r--r--src/GraphicObjects/Popper.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/GraphicObjects/Popper.cs b/src/GraphicObjects/Popper.cs
index 4fd84554..5e5541fe 100644
--- a/src/GraphicObjects/Popper.cs
+++ b/src/GraphicObjects/Popper.cs
@@ -89,6 +89,17 @@ namespace Crow
}
}
+ public override void OnLayoutChanges (LayoutingType layoutType)
+ {
+ base.OnLayoutChanges (layoutType);
+
+ if (_content == null)
+ return;
+
+ if (layoutType == LayoutingType.Width)
+ _content.MinimumSize = new Size (this.Slot.Width, _content.MinimumSize.Height);
+ }
+
#region GraphicObject overrides
public override void ClearBinding ()
{