If header includes leading spaces, include those in size of header (AEP has spaces in front of OR

Use ‘RNOWidthAltAll’ (for AEP)
This commit is contained in:
2015-04-10 13:54:18 +00:00
parent 32acf4ac5a
commit dd49a26ef3
2 changed files with 13 additions and 0 deletions

View File

@@ -4836,6 +4836,16 @@ namespace Volian.Print.Library
// 72 points / inch - 7 inches (about width of page)
Width = 72 * 7;
}
else if (itemInfo.IsRNOPart && itemInfo.MyActiveSection.ColumnMode != 0 && itemInfo.ActiveFormat.MyStepSectionLayoutData.RNOWidthAltAll != null)
{
// This code was added for AEP. Other code that adjusted RNO widths was only adjusting the RNO widths
// off of the HLS. AEP needed adjusting for all RNOs.
float ovrd = (float)itemInfo.ActiveFormat.MyStepSectionLayoutData.RNOWidthAltAll;
if (ovrd > 0)
Width = ovrd - tabWidth;
if (XOffset + Width > (float)itemInfo.MyDocStyle.Layout.PageWidth)
Width = (float)itemInfo.MyDocStyle.Layout.PageWidth - XOffset - 5;
}
else if (itemInfo.IsRNOPart && !((ItemInfo)itemInfo.ActiveParent).IsHigh)
{
if (itemInfo.ActiveFormat.MyStepSectionLayoutData.RNOWidthAdj != null && !((ItemInfo)itemInfo.ActiveParent).IsInRNO)