C0218-022: If tab is too long, move text xoffset over for SAMG Supplemental Info (previous fix didn’t work on longer tabs)

This commit is contained in:
Kathy Ruffing 2018-07-23 14:29:03 +00:00
parent a6a9305f7d
commit 6bc8f2ee9d

View File

@ -5591,7 +5591,8 @@ namespace Volian.Print.Library
float mytbwidth = myTab.Width;
myTab.Width = 2.5f * myTab.Width;
// C2018-022: adjust xoffset of text by 12 if the tab would overwrite the text and the format flag is on:
if (itemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SupInfoAdjustXOffForLongTab && myTab.XOffset + mytbwidth > XOffset) XOffset += 12;
if (itemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SupInfoAdjustXOffForLongTab && ((myTab.XOffset + mytbwidth + 12) > XOffset))
XOffset = 12F + myTab.XOffset + mytbwidth;
}
// B2017-102: need to set width here since using Xoffset because AdjustWidth is called before this adjustment.
Width = (float)itemInfo.MyDocStyle.Layout.PageWidth - XOffset - (sitabloc / 2);