From 6a660a8c67b3c7134af132dd322b50980fccdf74 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 12 Sep 2018 15:33:37 +0000 Subject: [PATCH] =?UTF-8?q?F2018-041=20updated=20logic=20to=20handle=20the?= =?UTF-8?q?=20positioning=20of=20a=20sequential=20substep=20that=20is=20a?= =?UTF-8?q?=20child=20of=20a=20Title=20With=20Text=20Below=20step=20(i.e.?= =?UTF-8?q?=20Basis=20title=20in=20enhanced=20backgrounds)=20=E2=80=93=20f?= =?UTF-8?q?or=20Wolf=20Creek=20Enhanced=20Documents?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Print.Library/vlnParagraph.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 38402b5d..782636f2 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -5668,9 +5668,15 @@ namespace Volian.Print.Library float? colOvrd = itemInfo.FormatStepData.ColOverride; if (itemInfo.IsBackgroundStep()) { - if (myTab != null) myTab.XOffset = XOffset; - XOffset += (itemInfo.FormatStepData.Font.CharsToTwips * 2); // indent 2 characters for background steps - Width -= (itemInfo.FormatStepData.Font.CharsToTwips * 2); // Adjust width by 2 characters + int adj = 2; + if (myTab != null) + { + // F2018-041 seq tabs off of TitleWithTextBelow were running into the step text + myTab.XOffset = XOffset + (itemInfo.FormatStepData.Font.CharsToTwips * adj); // F2018-041 move tab over 2 chars so it positions like paragraphs under TitleWithTextBelow + adj += myTab.Text.Length; // F2018-041 add the length of the tab to the adjustment of the XOffset + } + XOffset += (itemInfo.FormatStepData.Font.CharsToTwips * adj); // indent 2 characters for background steps + Width -= (itemInfo.FormatStepData.Font.CharsToTwips * adj); // Adjust width by 2 characters return; } else if (itemInfo.FormatStepData.UseOldTemplate && itemInfo.IsInTemplate() &&