Process page number transitions & change bar location

B2015-073: Code for processing page number transitions
Allow for step box across page break.
This commit is contained in:
2015-05-28 16:23:53 +00:00
parent bb037ba06d
commit 5b07290ccd
3 changed files with 15 additions and 2 deletions

View File

@@ -112,7 +112,17 @@ namespace Volian.Print.Library
if (DefBox != null && DefBox != vlnBox.DOUBLEboxHLS)
{
cb.SetLineWidth(.6F);
cb.Rectangle(left, bottom, right - left, Height * MyPageHelper.YMultiplier);
float lheight = Height;
if (top > yTopMargin)
{
lheight -= (top - yTopMargin);
}
if (bottom < yBottomMargin)
{
lheight += (bottom - yBottomMargin);
bottom = yBottomMargin;
}
cb.Rectangle(left, bottom, right - left, lheight * MyPageHelper.YMultiplier);
}
else if (DefBox == vlnBox.DOUBLEboxHLS)
{