aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/GraphicObject.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/GraphicObjects/GraphicObject.cs')
-rw-r--r--src/GraphicObjects/GraphicObject.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs
index 327d0d05..d7567659 100644
--- a/src/GraphicObjects/GraphicObject.cs
+++ b/src/GraphicObjects/GraphicObject.cs
@@ -364,16 +364,16 @@ namespace Crow
if (HostContainer == null)
return;
-// //add slot to clipping to redraw
-// HostContainer.gobjsToRedraw.Add (this);
//ensure main win doesn't keep hidden childrens ref
if (!_isVisible && this.Contains (HostContainer.hoverWidget))
HostContainer.hoverWidget = null;
+
if (Parent is GenericStack)
Parent.RegisterForLayouting (LayoutingType.Sizing | LayoutingType.PositionChildren);
-//
- RegisterForLayouting(LayoutingType.Sizing);
+
+ RegisterForLayouting (LayoutingType.Sizing);
+
RegisterForRedraw ();
NotifyValueChanged ("Visible", _isVisible);
}