diff options
Diffstat (limited to 'src/GraphicObjects/ComboBox.cs')
| -rw-r--r-- | src/GraphicObjects/ComboBox.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/GraphicObjects/ComboBox.cs b/src/GraphicObjects/ComboBox.cs index 4f948e5b..019d8c9c 100644 --- a/src/GraphicObjects/ComboBox.cs +++ b/src/GraphicObjects/ComboBox.cs @@ -1,4 +1,5 @@ using System; +using System.Xml.Serialization; namespace Crow { @@ -9,5 +10,22 @@ namespace Crow #region CTOR public ComboBox() : base(){ } #endregion + + Size minimumPopupSize = "100;100"; + [XmlIgnore]public Size MinimumPopupSize{ + get { return minimumPopupSize; } + set { + minimumPopupSize = value; + NotifyValueChanged ("MinimumPopupSize", minimumPopupSize); + } + } + + public override void OnLayoutChanges (LayoutingType layoutType) + { + base.OnLayoutChanges (layoutType); + + if (layoutType == LayoutingType.Width) + MinimumPopupSize = new Size (this.Slot.Width, minimumPopupSize.Height); + } } } |