aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/GenericStack.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2015-09-11 18:48:00 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2015-09-11 18:48:00 +0200
commit7797eb5e1352028ba30563bbc77cbddd22e0cf83 (patch)
tree92c17077ffda448ed1eef6ba3ee2381d217c8a73 /src/GraphicObjects/GenericStack.cs
parent58e643bf9e00e01cacd5ba0465b9d24ef0f93cb4 (diff)
Grid control, Stack sizing default reset to stretched as all the other
controls
Diffstat (limited to 'src/GraphicObjects/GenericStack.cs')
-rw-r--r--src/GraphicObjects/GenericStack.cs20
1 files changed, 6 insertions, 14 deletions
diff --git a/src/GraphicObjects/GenericStack.cs b/src/GraphicObjects/GenericStack.cs
index bac7d8af..c6260c6b 100644
--- a/src/GraphicObjects/GenericStack.cs
+++ b/src/GraphicObjects/GenericStack.cs
@@ -39,7 +39,12 @@ namespace go
public int Spacing
{
get { return _spacing; }
- set { _spacing = value; }
+ set {
+ if (_spacing == value)
+ return;
+ _spacing = value;
+ NotifyValueChanged ("Spacing", Spacing);
+ }
}
[XmlAttributeAttribute()][DefaultValue(Orientation.Horizontal)]
public virtual Orientation Orientation
@@ -50,19 +55,6 @@ namespace go
#endregion
#region GraphicObject Overrides
- //TODO: to be coherent, those overrides should be removed
- //I could maybe set size to fit dynamicaly in the direction of the stack
- [XmlAttributeAttribute()][DefaultValue(-1)]
- public override int Width {
- get { return base.Width; }
- set { base.Width = value; }
- }
- [XmlAttributeAttribute()][DefaultValue(-1)]
- public override int Height {
- get { return base.Height; }
- set { base.Height = value; }
- }
-
protected override Size measureRawSize ()
{
Size tmp = new Size ();