}
public virtual void ComputeChildrenPositions()
{
- #if DEBUG_LAYOUTING
- Debug.WriteLine("ComputeChildrenPosition: " + this.ToString());
- #endif
int d = 0;
if (Orientation == Orientation.Horizontal) {
foreach (GraphicObject c in Children) {
if (stretchedGO.LastSlots.Width != tmpWidth) {
stretchedGO.Slot.Width = tmpWidth;
stretchedGO.bmp = null;
+ #if DEBUG_LAYOUTING
+ Debug.WriteLine ("\tAdjusting Width of " + stretchedGO.ToString());
+ #endif
stretchedGO.OnLayoutChanges (LayoutingType.Width);
stretchedGO.LastSlots.Width = stretchedGO.Slot.Width;
}
if (stretchedGO.LastSlots.Height != tmpHeight) {
stretchedGO.Slot.Height = tmpHeight;
stretchedGO.bmp = null;
+ #if DEBUG_LAYOUTING
+ Debug.WriteLine ("\tAdjusting Height of " + stretchedGO.ToString());
+ #endif
stretchedGO.OnLayoutChanges (LayoutingType.Height);
stretchedGO.LastSlots.Height = stretchedGO.Slot.Height;
}
return;
#if DEBUG_LAYOUTING
- Debug.WriteLine ("RegisterForLayouting => {1}->{0}", layoutType, this.ToString());
+ Debug.WriteLine ("REGLayout => {1}->{0}", layoutType, this.ToString());
#endif
//enqueue LQI LayoutingTypes separately
public virtual void OnLayoutChanges(LayoutingType layoutType)
{
#if DEBUG_LAYOUTING
- Debug.WriteLine ("Layout change: " + this.ToString () + ":" + LastSlots.ToString() + "=>" + Slot.ToString ());
+ Debug.WriteLine ("\t " + LastSlots.ToString() + "\n\t => " + Slot.ToString ());
#endif
switch (layoutType) {
Debug.WriteLine ("ERROR: processLayouting, no parent for: " + this.ToString ());
return;
}
+ #if DEBUG_LAYOUTING
+ Debug.WriteLine ("Layouting => " + this.ToString ());
+ #endif
if (!GraphicObject.UpdateLayout (LayoutType)) {
#if DEBUG_LAYOUTING
- Debug.WriteLine ("Requeuing => " + this.ToString ());
+ Debug.WriteLine ("\tRequeuing => " + this.ToString ());
#endif
GraphicObject.LayoutingTries ++;
- if (GraphicObject.LayoutingTries < Interface.MaxLayoutingTries)
+ if (GraphicObject.LayoutingTries < Interface.MaxLayoutingTries) {
+ GraphicObject.RegisteredLayoutings |= LayoutType;
Interface.LayoutingQueue.Enqueue (this);
+ }
} else {
GraphicObject.LayoutingTries = 0;
- #if DEBUG_LAYOUTING
- Debug.WriteLine ("Layouting => " + this.ToString ());
- #endif
}
}