Fixed text position of a bulleted substep off of a TitleWithTextRight substep (IP2 Enhanced Backgrounds)

This commit is contained in:
John Jenko 2015-03-04 20:13:28 +00:00
parent 36cafa9085
commit 73143c199c

View File

@ -4183,6 +4183,13 @@ namespace Volian.Print.Library
else if (itemInfo.MyParent.FormatStepData != null && itemInfo.MyParent.FormatStepData.Type == "TitleWithTextRight")
{
XOffset = MyParent.MyParent.XOffset;
// if the step text has a tab, then we need to position the tab to the XOffset and then ajust the text XOffset
// by the length of the tab. - fix for IP2 backgrounds (ex. 2-ECA-3.3, step 6)
if (myTab != null)
{
myTab.XOffset = XOffset;
XOffset += (myTab.Text.Length * myTab.MyFont.CharsToTwips);//myTab.Width - myTab.XOffset;
}
return;
}
if (itemInfo.IsHigh)