From 9b724d17ac3c111c4d2dc528bdd1539e298e3084 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 3 Dec 2020 20:09:44 +0000 Subject: [PATCH] B2020-161 Not all centered tables were properly centering. Needed to add logic to account for the use of a checkoff header. This was needed for tables that where approaching the defined width of the page. --- PROMS/Volian.Print.Library/vlnParagraph.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 96b98a9c..7eacdcb2 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -5142,8 +5142,10 @@ namespace Volian.Print.Library } else { - // if the XOffset < High Level Step Text's XOffset , then align with the High Level Step Text - if (XOffset < xLowerLimit && Width < (xUpperLimit - xLowerLimit)) + // if the XOffset < High Level Step Text's XOffset , then align with the High Level Step Text' + // B2020-161 - needed to substract the checkoff width when deterniming the XOffset + // fixes centered tables in Calvert Unit 2 STP O-90-2 step 6.3.A + if (XOffset < xLowerLimit && Width < (xUpperLimit - xLowerLimit - hls1.CheckOffWidth)) XOffset = xLowerLimit; // if the right margin exceeds the right edge of the rightmost RNO, then adjust right edge to match.