B2018-096 AEP 082.002CD Note Box overlapping Step Box
This commit is contained in:
@@ -75,7 +75,21 @@ namespace Volian.Print.Library
|
||||
const string BoxAsteriskTopBottom = "*.*.*. . . .*.*. .*. . "; // fnp
|
||||
const string BoxLineTopBottom = "\x2500.\x2500.\x2500. . . .\x2500.\x2500. .\x2500. . "; // fnp
|
||||
const string BoxAsteriskTopBotton2 = " .*. . . . . . . .*. . "; // Robinson (CPL)
|
||||
|
||||
public vlnBox MyParentBox
|
||||
{
|
||||
get
|
||||
{
|
||||
// B2018-096 AEP 082.002CD Note Box overlapping Step Box
|
||||
vlnParagraph parent = MyParent.MyParent;
|
||||
if(parent == null) return null;
|
||||
if (!parent.MyItemInfo.FormatStepData.BoxIt) return null;
|
||||
if (parent.PartsContainer == null) return null;
|
||||
foreach(vlnPrintObject obj in parent.PartsContainer)
|
||||
if (obj is vlnBox)
|
||||
return(obj as vlnBox);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
public override float ToPdf(PdfContentByte cb, float yPageStart, ref float yTopMargin, ref float yBottomMargin)
|
||||
{
|
||||
if (MyBox == null) return yPageStart;
|
||||
@@ -93,6 +107,8 @@ namespace Volian.Print.Library
|
||||
myBoxLeftAdj = float.Parse(MyParent.MyItemInfo.ActiveFormat.MyStepSectionLayoutData.BoxLeftAdj);
|
||||
left += myBoxLeftAdj;
|
||||
float right = (float)MyParent.MyItemInfo.MyDocStyle.Layout.LeftMargin + (float)(MyBox.End ?? DefEnd);
|
||||
if (MyParentBox != null)// B2018-096 AEP 082.002CD Note Box overlapping Step Box
|
||||
right = (float)MyParent.MyItemInfo.MyDocStyle.Layout.LeftMargin + MyParentBox.DefEnd - SixLinesPerInch/2;
|
||||
right += myBoxLeftAdj;
|
||||
iTextSharp.text.Color boxColor = new iTextSharp.text.Color(PrintOverride.OverrideBoxColor(System.Drawing.Color.Black));
|
||||
cb.SetColorStroke(boxColor);
|
||||
|
Reference in New Issue
Block a user