F2023-112 - adjust length of text next to purpose in background format, other format adjustments and cleanup
This commit is contained in:
parent
b8807f2289
commit
8e4c42ac05
Binary file not shown.
Binary file not shown.
@ -6612,7 +6612,7 @@ namespace Volian.Print.Library
|
||||
int? bxIndx = itemInfo.IsStep ? itemInfo.FormatStepData.StepLayoutData.STBoxindex : null;
|
||||
float? widOvrd = 0;
|
||||
float xwid = 0;
|
||||
if (itemInfo.IsStep && itemInfo.MyHLS != null && UseTemplateWidthOrXOff(itemInfo) && (xwid = GetWidthOrStartFromTemplate(itemInfo, formatInfo, true)) > 0)
|
||||
if (itemInfo.IsStep && itemInfo.MyHLS != null && UseTemplateWidthOrXOff(itemInfo) && (xwid = GetWidthOrStartFromTemplate(itemInfo, formatInfo, true)) > 0)
|
||||
widOvrd = xwid;
|
||||
else
|
||||
widOvrd = itemInfo.FormatStepData == null ? null : itemInfo.FormatStepData.WidthOverride == null ? null :
|
||||
@ -6671,10 +6671,15 @@ namespace Volian.Print.Library
|
||||
}
|
||||
if ((widOvrd ?? 0) != 0)
|
||||
{
|
||||
Width = (float)widOvrd;
|
||||
// if there's a box, we may need to do an adjustment on the width, if the tab data was changed
|
||||
// so don't return.
|
||||
if (bxIndx == null) return;
|
||||
//F2023-112 Vogtle Units 3 & 4 Backgrounds. Don't use override width of paragraph when it's off of TitleWithTextRight
|
||||
// We need to allow the code to calculate the width of that paragraph for this case (later in this function)
|
||||
if (!(itemInfo.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.Vogtle3and4BackgroundFormat && itemInfo.MyParent.FormatStepData != null && itemInfo.MyParent.FormatStepData.Type == "TitleWithTextRight"))
|
||||
{
|
||||
Width = (float)widOvrd;
|
||||
// if there's a box, we may need to do an adjustment on the width, if the tab data was changed
|
||||
// so don't return.
|
||||
if (bxIndx == null) return;
|
||||
}
|
||||
}
|
||||
float tabWidth = (myTab == null) ? 0 : myTab.Width;
|
||||
if (itemInfo.IsHigh)
|
||||
|
Loading…
x
Reference in New Issue
Block a user