B2017-253 Tab on a sup info item too far to the left. The code was changed to keep the tab inside the left margin.

This commit is contained in:
Rich 2017-11-14 18:49:55 +00:00
parent 203baaf699
commit 50e36953d2

View File

@ -5507,6 +5507,8 @@ namespace Volian.Print.Library
if (myTab != null)
{
myTab.XOffset = XOffset - ((myTab == null) ? 0 : myTab.Width) - 12;
// B2017-253 - Limit the tab offset to 2 points inside the left margin
myTab.XOffset = Math.Max(myTab.XOffset,itemInfo.MyDocStyle.Layout.LeftMargin ?? 72)+2;
myTab.Width = 2.5f * myTab.Width;
}
// B2017-102: need to set width here since using Xoffset because AdjustWidth is called before this adjustment.