aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/GraphicObject.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-05-25 08:11:05 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2016-05-25 08:11:05 +0200
commit63cb46716cd042c2884687be2d47f7a5ce35e9c6 (patch)
tree2abb2f79ae281585e7dd524d598515ab9470f9f8 /src/GraphicObjects/GraphicObject.cs
parentb92a60c591756df6c2a93c212f425290b0a559ec (diff)
debug combobox
Diffstat (limited to 'src/GraphicObjects/GraphicObject.cs')
-rw-r--r--src/GraphicObjects/GraphicObject.cs11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs
index 549f9a91..6175b2d8 100644
--- a/src/GraphicObjects/GraphicObject.cs
+++ b/src/GraphicObjects/GraphicObject.cs
@@ -398,7 +398,8 @@ namespace Crow
if (Parent is GenericStack)
(Parent as GraphicObject).RegisterForLayouting (LayoutingType.ArrangeChildren);
- RegisterForLayouting (LayoutingType.Sizing);
+ if (_isVisible)
+ RegisterForLayouting (LayoutingType.Sizing);
RegisterForGraphicUpdate ();
NotifyValueChanged ("Visible", _isVisible);
@@ -803,10 +804,10 @@ namespace Crow
//size constrain
if (Slot.Width < MinimumSize.Width) {
Slot.Width = MinimumSize.Width;
- NotifyValueChanged ("WidthPolicy", Measure.Stretched);
+ //NotifyValueChanged ("WidthPolicy", Measure.Stretched);
} else if (Slot.Width > MaximumSize.Width && MaximumSize.Width > 0) {
Slot.Width = MaximumSize.Width;
- NotifyValueChanged ("WidthPolicy", Measure.Stretched);
+ //NotifyValueChanged ("WidthPolicy", Measure.Stretched);
}
} else
Slot.Width = 0;
@@ -830,10 +831,10 @@ namespace Crow
//size constrain
if (Slot.Height < MinimumSize.Height) {
Slot.Height = MinimumSize.Height;
- NotifyValueChanged ("HeightPolicy", Measure.Stretched);
+ //NotifyValueChanged ("HeightPolicy", Measure.Stretched);
} else if (Slot.Height > MaximumSize.Height && MaximumSize.Height > 0) {
Slot.Height = MaximumSize.Height;
- NotifyValueChanged ("HeightPolicy", Measure.Stretched);
+ //NotifyValueChanged ("HeightPolicy", Measure.Stretched);
}
} else
Slot.Height = 0;