B2020-081 better logic for steps with more than on RNO level to try and keep the RNO sub-step from breaking (where possible) and to see if the entire second RNO could also fit on the page
This commit is contained in:
@@ -1400,6 +1400,32 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
return level;
|
||||
}
|
||||
// B2020-081 used in HasSecondRNOThatWillFit() in pagination.cs
|
||||
// Get the total number of RNO levels in the step
|
||||
public int GetMaxRNOLevels
|
||||
{
|
||||
get
|
||||
{
|
||||
return MyHLS.GetMaxRNOLevelsFromChildren;
|
||||
}
|
||||
}
|
||||
private int GetMaxRNOLevelsFromChildren
|
||||
{
|
||||
get
|
||||
{
|
||||
int maxRNOLevel = RNOLevel;
|
||||
if (MyContent.ContentParts != null)
|
||||
{
|
||||
foreach (PartInfo pi in MyContent.ContentParts)
|
||||
{
|
||||
foreach (ItemInfo ii in pi.MyItems)
|
||||
maxRNOLevel = Math.Max(maxRNOLevel, ii.GetMaxRNOLevelsFromChildren);
|
||||
}
|
||||
}
|
||||
return maxRNOLevel;
|
||||
}
|
||||
|
||||
}
|
||||
private bool ParentAndOr
|
||||
{
|
||||
get
|
||||
|
Reference in New Issue
Block a user