FNP xoffset of RNO's off unnumbered HLS
This commit is contained in:
@@ -1423,21 +1423,18 @@ namespace Volian.Print.Library
|
||||
XOffset += inc;
|
||||
adjustAgain = false;
|
||||
}
|
||||
else if (mytab != null)
|
||||
if (itemInfo.FormatStepData.AdjHighLevelTab != null)
|
||||
// For Farley (only plant format to use AdjHighLevelTab), determine the xoffset based on
|
||||
// where the right edge of the text is. Their RNO's are numbered with parent numbering
|
||||
// so the calculations for determining the xoffset backs up from the right edge.
|
||||
{
|
||||
// For Farley (only plant format to use AdjHighLevelTab), determine the xoffset based on
|
||||
// where the right edge of the text is. Their RNO's are numbered with parent numbering
|
||||
// so the calculations for determining the xoffset backs up from the right edge.
|
||||
if (itemInfo.FormatStepData.AdjHighLevelTab != null)
|
||||
{
|
||||
float rightTextEdge = this.MyHighLevelParagraph.XOffset + this.MyHighLevelParagraph.Width;
|
||||
int colRx = int.Parse(formatInfo.MyStepSectionLayoutData.ColRTable.Split(",".ToCharArray())[itemInfo.ColumnMode]);
|
||||
rightTextEdge += (colRx + MyHighLevelParagraph.MyTab.Width - (itemInfo.FormatStepData.AdjHighLevelTab ?? 0));
|
||||
float diff = rightTextEdge - (XOffset + Width);
|
||||
mytab.XOffset += diff;
|
||||
XOffset += diff;
|
||||
adjustAgain = false;
|
||||
}
|
||||
float rightTextEdge = this.MyHighLevelParagraph.XOffset + this.MyHighLevelParagraph.Width;
|
||||
int colRx = int.Parse(formatInfo.MyStepSectionLayoutData.ColRTable.Split(",".ToCharArray())[itemInfo.ColumnMode]);
|
||||
rightTextEdge += (colRx + (itemInfo.FormatStepData.AdjHighLevelTab ?? 0));
|
||||
float diff = rightTextEdge - (XOffset + Width);
|
||||
if (mytab != null) mytab.XOffset += diff;
|
||||
XOffset += diff;
|
||||
adjustAgain = false;
|
||||
}
|
||||
}
|
||||
if(adjustAgain)
|
||||
|
Reference in New Issue
Block a user