B2018-098 Don’t adjust the text width if the parent item is in BoxIt mode
This commit is contained in:
parent
05396b6b86
commit
2b430568fa
@ -6163,8 +6163,13 @@ namespace Volian.Print.Library
|
|||||||
{
|
{
|
||||||
float oldWidth = _WidthAdjustBox + (float)bx.TxtWidth - tabWidth; // add 1 to get it to wrap like 16Bit
|
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
|
// B2018-096 AEP 082.002CD Note Box overlapping Step Box
|
||||||
Width = Math.Min(MyParent.Width + MyParent.XOffset - XOffset, oldWidth);
|
if (MyParent.MyItemInfo.FormatStepData.BoxIt) // B2018-098 only adjust width if parent has Boxit turned on
|
||||||
AdjustHeader = (Width - oldWidth)/2;
|
{
|
||||||
|
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)
|
else if ((itemInfo.IsCaution || itemInfo.IsNote) && !itemInfo.FormatStepData.UseOldTemplate)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user