diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-07 22:27:39 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-07 22:27:39 +0100 |
| commit | e7f1d4eac6b5023810152bf1f6c45f563bd0e202 (patch) | |
| tree | cbfd41fcdc0500ea7e281df26096bb5dfa9ef4c9 /src/GraphicObjects/GraphicObject.cs | |
| parent | 56177407f0a2ddfe7e2677290c79f38e194accde (diff) | |
remove HostContainer.gobjsToRedraw.add(this),old clip added differently
Diffstat (limited to 'src/GraphicObjects/GraphicObject.cs')
| -rw-r--r-- | src/GraphicObjects/GraphicObject.cs | 8 |
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); } |