B2020-160 Calvert Forced Pagination fix. Logic to help keep RNO Note header on the same page as the note text and corresponding AER text.
This commit is contained in:
parent
fbe233dd12
commit
b2419c1f5c
@ -4293,10 +4293,13 @@ namespace Volian.Print.Library
|
|||||||
yoff += adj;
|
yoff += adj;
|
||||||
if (MyTab != null) MyTab.YOffset = ChildrenRight[0].YOffset;
|
if (MyTab != null) MyTab.YOffset = ChildrenRight[0].YOffset;
|
||||||
if (PartsRight.Count > 0) PartsRight[0].YOffset = ChildrenRight[0].YOffset;
|
if (PartsRight.Count > 0) PartsRight[0].YOffset = ChildrenRight[0].YOffset;
|
||||||
|
//B2020-160 use YTopMost instead of Yoffset and if there are children above
|
||||||
|
// get the minimun value between the AER and RNO YtopMost.
|
||||||
|
// example. Calvert AOP-7E/XIII/Step A5.h Unit 2 Approved set
|
||||||
if (ChildrenAbove.Count == 0)
|
if (ChildrenAbove.Count == 0)
|
||||||
YTopMost = ChildrenRight[0].ChildrenAbove[0].YOffset;
|
YTopMost = ChildrenRight[0].ChildrenAbove[0].YTopMost;//YOffset;
|
||||||
else
|
else
|
||||||
YTopMost = ChildrenAbove[0].YOffset;
|
YTopMost = Math.Min(ChildrenAbove[0].YTopMost,ChildrenRight[0].ChildrenAbove[0].YTopMost);//YOffset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// if this hls had a box drawn, add a line for substeps.
|
// if this hls had a box drawn, add a line for substeps.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user