B2021-027 Catawba – AER steps that do not have Cautions or Notes above it, but do have an RNO with Cautions or Notes, was not aligned properly.

This commit is contained in:
John Jenko 2021-03-03 14:26:51 +00:00
parent c7135a0aad
commit cf126fe4ce

View File

@ -4301,13 +4301,15 @@ namespace Volian.Print.Library
yoff += adj;
if (MyTab != null) MyTab.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.
//B2020-160 use YTopMost instead of Yoffset 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
//B2021-027 use YOffset if there isn't any children above (AER).
// example: Catawba Unit 1 APs; AP/1/A/5500/050; Enclosure 8 step 1
if (ChildrenAbove.Count == 0)
YTopMost = ChildrenRight[0].ChildrenAbove[0].YTopMost;//YOffset;
YTopMost = ChildrenRight[0].ChildrenAbove[0].YOffset; //B2021-027
else
YTopMost = Math.Min(ChildrenAbove[0].YTopMost,ChildrenRight[0].ChildrenAbove[0].YTopMost);//YOffset;
YTopMost = Math.Min(ChildrenAbove[0].YTopMost, ChildrenRight[0].ChildrenAbove[0].YTopMost); //B2020-160
}
}
// if this hls had a box drawn, add a line for substeps.