From 2b430568fa48293f332f8bd554f5bda21743d986 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 21 Jun 2018 15:13:39 +0000 Subject: [PATCH] =?UTF-8?q?B2018-098=20Don=E2=80=99t=20adjust=20the=20text?= =?UTF-8?q?=20width=20if=20the=20parent=20item=20is=20in=20BoxIt=20mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Print.Library/vlnParagraph.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index d02a5c1b..0ae77f59 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -6163,8 +6163,13 @@ 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 - Width = Math.Min(MyParent.Width + MyParent.XOffset - XOffset, oldWidth); - AdjustHeader = (Width - oldWidth)/2; + 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)