Notes and Cautions off of Sections with substeps were not expanding in the editor
This commit is contained in:
parent
a2835ab73d
commit
60e7c9a140
@ -244,6 +244,8 @@ namespace Volian.Controls.Library
|
|||||||
#region Constructors
|
#region Constructors
|
||||||
public RTBItem(ItemInfo itemInfo, StepPanel myStepPanel, EditItem myParentEditItem, ChildRelation myChildRelation, bool expand)
|
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");
|
//// TIMING: DisplayItem.TimeIt("CSLARTB Top");
|
||||||
InitializeComponent();// TODO: Performance 25%
|
InitializeComponent();// TODO: Performance 25%
|
||||||
SetupEditItem(itemInfo, myStepPanel, myParentEditItem, myChildRelation, expand, null, false);
|
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)
|
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");
|
//// TIMING: DisplayItem.TimeIt("CSLARTB Top");
|
||||||
InitializeComponent();// TODO: Performance 25%
|
InitializeComponent();// TODO: Performance 25%
|
||||||
SetupEditItem(itemInfo, myStepPanel, myParentEditItem, myChildRelation, expand, nextEditItem, false);
|
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)
|
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");
|
//// TIMING: DisplayItem.TimeIt("CSLARTB Top");
|
||||||
InitializeComponent();// TODO: Performance 25%
|
InitializeComponent();// TODO: Performance 25%
|
||||||
SetupEditItem(itemInfo, myStepPanel, myParentEditItem, myChildRelation, expand, null, addFirstChld);
|
SetupEditItem(itemInfo, myStepPanel, myParentEditItem, myChildRelation, expand, null, addFirstChld);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user