F2017-011 fixed logic that was partially overwriting the text in the TitleWithTextRight step type (enhanced backgrounds) Also fixed the positioning of the TitleWithTextRight and TitleWithTextBelow step types on the step editor for enhanced backgrounds
null reference check F2017-013 – added logic to SplitTitle to handle when the page list item containing <SectionLevelTitle> also has text (ex: <SectionLevelNumber>) on the same line and we need to split all of that text onto another line
This commit is contained in:
@@ -2557,10 +2557,13 @@ namespace Volian.Controls.Library
|
||||
// Paul Linn made the request on 6/4/12 to align the Component Description &
|
||||
// Required Position under the Component Number.
|
||||
ItemLocation = new Point(_MyParentEditItem.ItemLocation.X, _MyParentEditItem.Bottom);
|
||||
// part of F2017-011, for enhanced backgrounds, always align the TitleWithTextRight and TitleWithTextBelow with the parent tab (on the screen)
|
||||
else if ((MyItemInfo.FormatStepData.Type == "TitleWithTextRight" || MyItemInfo.FormatStepData.Type == "TitleWithTextBelow") && ((MyItemInfo.ActiveFormat.PlantFormat.FormatData.PurchaseOptions.Value & E_PurchaseOptions.EnhancedBackgrounds) == E_PurchaseOptions.EnhancedBackgrounds)) // align with parent tab if in background document
|
||||
ItemLocation = new Point(_MyParentEditItem.ItemLocation.X, _MyParentEditItem.Bottom);
|
||||
else if (MyItemInfo.FormatStepData.Type == "TitleWithTextRight" && (MyItemInfo.Steps == null || MyItemInfo.Steps.Count == 0)) // this code is run for siblings within a HLS (but not last sibling).
|
||||
ItemLocation = new Point(_MyParentEditItem.ItemLocation.X, _MyParentEditItem.Bottom);
|
||||
else if (MyItemInfo.MyParent.FormatStepData.Type == "TitleWithTextRight")
|
||||
ItemLocation = new Point(_MyParentEditItem.ItemLocation.X + _MyParentEditItem.ItemWidth, _MyParentEditItem.ItemLocation.Y);
|
||||
ItemLocation = new Point(_MyParentEditItem.ItemLocation.X + _MyParentEditItem.ItemWidth + 10, _MyParentEditItem.ItemLocation.Y); // F2017-011 added 10 to fix positoning of Purpose text on sceen (enhanced backgrounds)
|
||||
else if (MyItemInfo.MyTab.Offset != 0)
|
||||
ContentLocation = new Point(_MyParentEditItem.ContentLocation.X + 10, _MyParentEditItem.Bottom);
|
||||
//ItemLocation = new Point(_MyParentEditItem.ItemLocation.X+10, _MyParentEditItem.Bottom);
|
||||
|
Reference in New Issue
Block a user