diff --git a/PROMS/Volian.Controls.Library/RTBItem.cs b/PROMS/Volian.Controls.Library/RTBItem.cs index d11ad16e..c7394228 100644 --- a/PROMS/Volian.Controls.Library/RTBItem.cs +++ b/PROMS/Volian.Controls.Library/RTBItem.cs @@ -244,6 +244,8 @@ namespace Volian.Controls.Library #region Constructors public RTBItem(ItemInfo itemInfo, StepPanel myStepPanel, EditItem myParentEditItem, ChildRelation myChildRelation, bool expand) { + // B2016-179 If the parent is a section and the child is not a step then set expand to true. + expand |= !itemInfo.IsStepPart && itemInfo.ActiveParent.IsSection; //// TIMING: DisplayItem.TimeIt("CSLARTB Top"); InitializeComponent();// TODO: Performance 25% SetupEditItem(itemInfo, myStepPanel, myParentEditItem, myChildRelation, expand, null, false); @@ -251,6 +253,8 @@ namespace Volian.Controls.Library } public RTBItem(ItemInfo itemInfo, StepPanel myStepPanel, EditItem myParentEditItem, ChildRelation myChildRelation, bool expand, EditItem nextEditItem) { + // B2016-179 If the parent is a section and the child is not a step then set expand to true. + expand |= !itemInfo.IsStepPart && itemInfo.ActiveParent is SectionInfo; //// TIMING: DisplayItem.TimeIt("CSLARTB Top"); InitializeComponent();// TODO: Performance 25% SetupEditItem(itemInfo, myStepPanel, myParentEditItem, myChildRelation, expand, nextEditItem, false); @@ -258,6 +262,8 @@ namespace Volian.Controls.Library } public RTBItem(ItemInfo itemInfo, StepPanel myStepPanel, EditItem myParentEditItem, ChildRelation myChildRelation, bool expand, bool addFirstChld) { + // B2016-179 If the parent is a section and the child is not a step then set expand to true. + expand |= !itemInfo.IsStepPart && itemInfo.ActiveParent is SectionInfo; //// TIMING: DisplayItem.TimeIt("CSLARTB Top"); InitializeComponent();// TODO: Performance 25% SetupEditItem(itemInfo, myStepPanel, myParentEditItem, myChildRelation, expand, null, addFirstChld);