F2024-006 Fixed pagination logic to that step text at the bottom of an Alarm Point page does not print on top of the bottom continue message
This commit is contained in:
@@ -3314,9 +3314,11 @@ namespace Volian.Print.Library
|
||||
/// This gets the height of the step with it's Caution's, Notes and potentially any First Substeps
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private float GetFirstPieceSize()
|
||||
// F2024-006: Vogtle Alarms pagination - added 'includeFirstSub' to get that size of the first substep with the parent step
|
||||
// to help determine pagination
|
||||
private float GetFirstPieceSize(bool includeFirstSub = false)
|
||||
{
|
||||
vlnParagraph paraLast = GetFirstPieceLastPart();
|
||||
vlnParagraph paraLast = GetFirstPieceLastPart(includeFirstSub);
|
||||
float retval = (paraLast.YBottom) - YTopMost;
|
||||
//Console.WriteLine(MyItemInfo.DBSequence);
|
||||
return retval;
|
||||
@@ -3370,10 +3372,12 @@ namespace Volian.Print.Library
|
||||
get { return _YBottomForBox; }
|
||||
set { _YBottomForBox = value; }
|
||||
}
|
||||
private vlnParagraph GetFirstPieceLastPart()
|
||||
// F2024-006: Vogtle Alarms pagination - added 'includeFirstSub' to get that size of the first substep with the parent step
|
||||
// to help determine pagination - even when PaginateOnFirstSubstep is turned on
|
||||
private vlnParagraph GetFirstPieceLastPart(bool includeFirstSub = false)
|
||||
{
|
||||
vlnParagraph para = this;
|
||||
if (!MyItemInfo.ActiveFormat.MyStepSectionLayoutData.PaginateOnFirstSubstep && ChildrenBelow != null && ChildrenBelow.Count > 0)
|
||||
if ((!MyItemInfo.ActiveFormat.MyStepSectionLayoutData.PaginateOnFirstSubstep || includeFirstSub) && ChildrenBelow != null && ChildrenBelow.Count > 0)
|
||||
{
|
||||
// If the substep has a separator (OR, AND) then return the last substep rather than the first.
|
||||
string mySep = ChildrenBelow[0].MyItemInfo.FormatStepData.Sep ?? "{Null}";
|
||||
@@ -3386,14 +3390,14 @@ namespace Volian.Print.Library
|
||||
if (keepEqListTogether && !ChildrenBelow[0].MyItemInfo.IsSequential && !this.MyItemInfo.IsHigh) // Extend to the last Item.
|
||||
para = ChildrenBelow[ChildrenBelow.Count - 1].GetFirstPieceLastPart();
|
||||
else
|
||||
para = ChildrenBelow[0].GetFirstPieceLastPart();
|
||||
para = ChildrenBelow[0].GetFirstPieceLastPart(includeFirstSub);
|
||||
}
|
||||
}
|
||||
if (ChildrenRight != null && ChildrenRight.Count > 0)
|
||||
{
|
||||
foreach (vlnParagraph paraRight in ChildrenRight)
|
||||
{
|
||||
vlnParagraph paraRightLast = paraRight.GetFirstPieceLastPart();
|
||||
vlnParagraph paraRightLast = paraRight.GetFirstPieceLastPart(includeFirstSub);
|
||||
if (paraRightLast.YBottom > para.YBottom)
|
||||
para = paraRightLast;
|
||||
}
|
||||
|
Reference in New Issue
Block a user