B2018-098 Don’t adjust the text width if the parent item is in BoxIt mode

This commit is contained in:
John Jenko 2018-06-21 15:13:39 +00:00
parent 05396b6b86
commit 2b430568fa

View File

@ -6163,9 +6163,14 @@ namespace Volian.Print.Library
{
float oldWidth = _WidthAdjustBox + (float)bx.TxtWidth - tabWidth; // add 1 to get it to wrap like 16Bit
// B2018-096 AEP 082.002CD Note Box overlapping Step Box
if (MyParent.MyItemInfo.FormatStepData.BoxIt) // B2018-098 only adjust width if parent has Boxit turned on
{
Width = Math.Min(MyParent.Width + MyParent.XOffset - XOffset, oldWidth);
AdjustHeader = (Width - oldWidth) / 2;
}
else
Width = oldWidth;
}
}
else if ((itemInfo.IsCaution || itemInfo.IsNote) && !itemInfo.FormatStepData.UseOldTemplate)
{