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;
|
int? bxIndx = itemInfo.IsStep ? itemInfo.FormatStepData.StepLayoutData.STBoxindex : null;
|
||||||
float? widOvrd = 0;
|
float? widOvrd = 0;
|
||||||
float xwid = 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;
|
widOvrd = xwid;
|
||||||
else
|
else
|
||||||
widOvrd = itemInfo.FormatStepData == null ? null : itemInfo.FormatStepData.WidthOverride == null ? null :
|
widOvrd = itemInfo.FormatStepData == null ? null : itemInfo.FormatStepData.WidthOverride == null ? null :
|
||||||
@ -6671,10 +6671,15 @@ namespace Volian.Print.Library
|
|||||||
}
|
}
|
||||||
if ((widOvrd ?? 0) != 0)
|
if ((widOvrd ?? 0) != 0)
|
||||||
{
|
{
|
||||||
Width = (float)widOvrd;
|
//F2023-112 Vogtle Units 3 & 4 Backgrounds. Don't use override width of paragraph when it's off of TitleWithTextRight
|
||||||
// if there's a box, we may need to do an adjustment on the width, if the tab data was changed
|
// We need to allow the code to calculate the width of that paragraph for this case (later in this function)
|
||||||
// so don't return.
|
if (!(itemInfo.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.Vogtle3and4BackgroundFormat && itemInfo.MyParent.FormatStepData != null && itemInfo.MyParent.FormatStepData.Type == "TitleWithTextRight"))
|
||||||
if (bxIndx == null) return;
|
{
|
||||||
|
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;
|
float tabWidth = (myTab == null) ? 0 : myTab.Width;
|
||||||
if (itemInfo.IsHigh)
|
if (itemInfo.IsHigh)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user