Pagination Logic associated with steps that are too large to fit on a page but the first substep will fit on a page corrected.
Logic added to align the AER step with an RNO step that has a caution or note.
This commit is contained in:
parent
0f59d980b1
commit
2369fe62dc
@ -474,7 +474,8 @@ namespace Volian.Print.Library
|
|||||||
float wcnChkLstBorder = myPara.MyItemInfo.MyHLS != null && myPara.MyItemInfo.MyHLS.FormatStepData.UseSmartTemplate &&
|
float wcnChkLstBorder = myPara.MyItemInfo.MyHLS != null && myPara.MyItemInfo.MyHLS.FormatStepData.UseSmartTemplate &&
|
||||||
(myPara.MyItemInfo.MyHLS.FormatStepData.Suffix ?? "") != "" ? 2*SixLinesPerInch : 0;
|
(myPara.MyItemInfo.MyHLS.FormatStepData.Suffix ?? "") != "" ? 2*SixLinesPerInch : 0;
|
||||||
if (myPara != lastBreak && (minPara == null || minPara.YTop > myPara.YTop))
|
if (myPara != lastBreak && (minPara == null || minPara.YTop > myPara.YTop))
|
||||||
minPara = myPara;
|
if ((-yLocation + yStart) >= yLowerLimit) // Only if it is more than the lower limit
|
||||||
|
minPara = myPara;
|
||||||
if (myPara.MyParent.YTop == myPara.YTop) myPara = myPara.MyParent;
|
if (myPara.MyParent.YTop == myPara.YTop) myPara = myPara.MyParent;
|
||||||
if (wcnChkLstBorder -yLocation <= yUpperLimit) // Fix for OFN-RJ-23
|
if (wcnChkLstBorder -yLocation <= yUpperLimit) // Fix for OFN-RJ-23
|
||||||
//if (-yLocation < yUpperLimit) // Before
|
//if (-yLocation < yUpperLimit) // Before
|
||||||
@ -486,12 +487,14 @@ namespace Volian.Print.Library
|
|||||||
// The top of this step is more than 1/2 way down the page
|
// The top of this step is more than 1/2 way down the page
|
||||||
if ((-yLocation + yStart) >= yLowerLimit)
|
if ((-yLocation + yStart) >= yLowerLimit)
|
||||||
if (myPara != lastBreak)
|
if (myPara != lastBreak)
|
||||||
return myPara;
|
if ((-yLocation + yStart) >= yLowerLimit) // Only if it is more than the lower limit
|
||||||
|
return myPara;
|
||||||
|
|
||||||
// If this item will not fit on the current page, put a page break
|
// If this item will not fit on the current page, put a page break
|
||||||
if (myPara.YBottom - myPara.YTop > (yUpperLimit - (-yLocation + yStart)))
|
if (myPara.YBottom - myPara.YTop > (yUpperLimit - (-yLocation + yStart)))
|
||||||
if (myPara != lastBreak)
|
if (myPara != lastBreak)
|
||||||
return myPara;
|
if ((-yLocation + yStart) >= yLowerLimit) // Only if it is more than the lower limit
|
||||||
|
return myPara;
|
||||||
// if is a caution or note & parent is a substep and entire substep doesn't fit, break.
|
// if is a caution or note & parent is a substep and entire substep doesn't fit, break.
|
||||||
if ((myPara.MyItemInfo.IsNote || myPara.MyItemInfo.IsCaution) &&
|
if ((myPara.MyItemInfo.IsNote || myPara.MyItemInfo.IsCaution) &&
|
||||||
!myPara.MyParent.MyItemInfo.IsHigh &&
|
!myPara.MyParent.MyItemInfo.IsHigh &&
|
||||||
|
@ -1909,8 +1909,14 @@ namespace Volian.Print.Library
|
|||||||
float yOffRight = yoff;
|
float yOffRight = yoff;
|
||||||
float RnoOffset = ToInt(formatInfo.MyStepSectionLayoutData.ColRTable, maxRNO);
|
float RnoOffset = ToInt(formatInfo.MyStepSectionLayoutData.ColRTable, maxRNO);
|
||||||
if (rnoLevel < maxRNO && itemInfo.RNOs != null)
|
if (rnoLevel < maxRNO && itemInfo.RNOs != null)
|
||||||
|
{
|
||||||
yOffRight = ChildrenRight.Add(cb, itemInfo.RNOs, XOffset + RnoOffset, YTop, YTop, rnoLevel + 1, maxRNO, formatInfo);
|
yOffRight = ChildrenRight.Add(cb, itemInfo.RNOs, XOffset + RnoOffset, YTop, YTop, rnoLevel + 1, maxRNO, formatInfo);
|
||||||
|
if (ChildrenRight[0].ChildrenAbove.Count > 0)
|
||||||
|
{
|
||||||
|
YOffset = ChildrenRight[0].YOffset;
|
||||||
|
if (MyTab != null) MyTab.YOffset = ChildrenRight[0].YOffset;
|
||||||
|
}
|
||||||
|
}
|
||||||
// Need code to determine if the table will overlap the Right Column if it does then
|
// Need code to determine if the table will overlap the Right Column if it does then
|
||||||
// use YOffRight rather than yoff
|
// use YOffRight rather than yoff
|
||||||
if (itemInfo.Tables != null)
|
if (itemInfo.Tables != null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user