diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-04 19:29:28 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-04 19:29:28 +0100 |
| commit | 488add6f728a66abefb3c8c031ee973401925d49 (patch) | |
| tree | b11d92c55d559dbed3ceb2bc09650f214220f4da /src/GraphicObjects/GraphicObject.cs | |
| parent | 7b8929e00f83ea8d5d176605ed7074a58f94cd86 (diff) | |
remove Lock for LayoutingQueue: no used for now
Diffstat (limited to 'src/GraphicObjects/GraphicObject.cs')
| -rw-r--r-- | src/GraphicObjects/GraphicObject.cs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index 6fe3a404..f6c9c84d 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -507,7 +507,7 @@ namespace Crow #if DEBUG_LAYOUTING Debug.WriteLine ("RegisterForLayouting => {1}->{0}", layoutType, this.ToString()); #endif - lock (Interface.LayoutingQueue) { + deleteLQI (layoutType); if ((layoutType & (int)LayoutingType.Width) > 0) { if (Bounds.Width == 0) //stretch in parent @@ -535,7 +535,7 @@ namespace Crow //for x positionning, sizing of parent and this have to be done Interface.LayoutingQueue.EnqueueAfterThisAndParentSizing (LayoutingType.Y, this); } - } + /// <summary> trigger dependant sizing component update </summary> public virtual void OnLayoutChanges(LayoutingType layoutType) @@ -702,11 +702,9 @@ namespace Crow LastSlots.Height = Slot.Height; break; } - lock (Interface.LayoutingQueue) { - //if no layouting remains in queue for item, registre for redraw - if (this.RegisteredLQIs.Count () <= 0 && bmp == null) - this.RegisterForRedraw (); - } + //if no layouting remains in queue for item, registre for redraw + if (this.RegisteredLQIs.Count () <= 0 && bmp == null) + this.RegisterForRedraw (); } /// <summary> This is the common overridable drawing routine to create new widget </summary> |