diff --git a/PROMS/Volian.Controls.Library/EditItem.cs b/PROMS/Volian.Controls.Library/EditItem.cs index 803ca3c3..b04c3f91 100644 --- a/PROMS/Volian.Controls.Library/EditItem.cs +++ b/PROMS/Volian.Controls.Library/EditItem.cs @@ -3277,8 +3277,11 @@ namespace Volian.Controls.Library } else if (value.MyItemInfo.IsTablePart) { - ItemLocation = new Point(value.MyParentEditItem.ContentLeft, value.Bottom); - ItemWidth = value.MyParentEditItem.ContentWidth; + // B2019-179: if more than 1 table, get to the first that has the parent: + EditItem cur = (EditItem)value; + while (cur.MyPreviousEditItem != null) cur = cur.MyPreviousEditItem; + ItemLocation = new Point(cur.MyParentEditItem.ContentLeft, cur.Bottom); + ItemWidth = cur.MyParentEditItem.ContentWidth; } else {