From fda348ed5e603da6255de6419d0f5b7cce602366 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 22 Jan 2014 15:12:25 +0000 Subject: [PATCH] =?UTF-8?q?Fixed=20the=20positioning=20of=20the=20backgrou?= =?UTF-8?q?nd=E2=80=99s=20high=20level=20step=20text,=20caution=20text=20a?= =?UTF-8?q?nd=20note=20text.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Print.Library/vlnParagraph.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 44743e02..e5ff8ce8 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -1938,6 +1938,7 @@ namespace Volian.Print.Library // For Checklist, the substeps are in rows of data. The YBottomMost is the bottom most for // the row. if (savCheckListBottomMost != 0) YBottomMost = Math.Max(savCheckListBottomMost, YBottomMost); + if (XOffsetCenter != null) XOffset = (float)XOffsetCenter; } private vlnParagraph FindParentRNO() @@ -2631,6 +2632,13 @@ namespace Volian.Print.Library return _ChildrenLeft; } } + private float? _XOffsetCenter = null; + + public float? XOffsetCenter + { + get { return _XOffsetCenter; } + set { _XOffsetCenter = value; } + } public void AdjustXOffsetForTab(ItemInfo itemInfo, int maxRNO, FormatInfo formatInfo, vlnTab myTab, float xMetaAdj) { float tabWidth = (myTab == null) ? 0 : myTab.Width; @@ -2659,7 +2667,7 @@ namespace Volian.Print.Library { float hdrWidth = itemInfo.MyContent.Text.Length * 6; float ctr = (((float)itemInfo.MyDocStyle.Layout.PageWidth - (float)itemInfo.MyDocStyle.Layout.LeftMargin)) / 2; - XOffset = (float)itemInfo.MyDocStyle.Layout.LeftMargin + ctr - (hdrWidth / 2); + XOffsetCenter = (float)itemInfo.MyDocStyle.Layout.LeftMargin + ctr - (hdrWidth / 2); } return; }