Fixed the positioning of the background’s high level step text, caution text and note text.
This commit is contained in:
parent
62a24592f9
commit
fda348ed5e
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user