diff --git a/PROMS/Volian.Controls.Library/StepItem.cs b/PROMS/Volian.Controls.Library/StepItem.cs index b974f37c..d287deec 100644 --- a/PROMS/Volian.Controls.Library/StepItem.cs +++ b/PROMS/Volian.Controls.Library/StepItem.cs @@ -194,7 +194,7 @@ namespace Volian.Controls.Library break; case 2: // Step // if Table then determine width and location based upon it's parent's location - if (_MyStepData.Type == "TABLE" || _MyStepData.ParentType == "TABLE") + if (_MyStepData.Type == "Table" || _MyStepData.ParentType == "Table") { _MyStepRTB.Font = _MyStepData.Font.WindowsFont; ItemWidth = (int)TableWidth(_MyStepRTB.Font, _MyItemInfo.MyContent.Text); @@ -973,6 +973,15 @@ namespace Volian.Controls.Library public void AddSiblingAfter() { ItemInfo newItemInfo = MyItemInfo.InsertSiblingAfter(""); + DoAddSiblingAfter(newItemInfo); + } + public void AddSiblingAfter(int? type) + { + ItemInfo newItemInfo = MyItemInfo.InsertSiblingAfter("","",type); + DoAddSiblingAfter(newItemInfo); + } + private void DoAddSiblingAfter(ItemInfo newItemInfo) + { StepItem newStepItem = null; switch (_MyChildRelation) {