From e7f1d4eac6b5023810152bf1f6c45f563bd0e202 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Sun, 7 Feb 2016 22:27:39 +0100 Subject: [PATCH] remove HostContainer.gobjsToRedraw.add(this),old clip added differently --- src/GraphicObjects/GraphicObject.cs | 8 ++++---- 1 file 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); } -- 2.47.3