Farley had a Table that was printing on the page following the tables header. Pagination was changed to keep table headers together with their tables.
Added logic to skip the Tab Adjustments if the step is unnumbered.
This commit is contained in:
parent
0376212e09
commit
6611c3d2a4
@ -420,6 +420,10 @@ namespace Volian.Print.Library
|
||||
{
|
||||
throw (new Exception(string.Format("Pagination Infinite Loop {0}",lastBreak.MyItemInfo.ShortPath)));
|
||||
}
|
||||
// If the break is going to happen on a table, and the tables parent would fit on a page with the table
|
||||
// and the text in the parent includes the word table, then break on the parent
|
||||
//if (lastBreak != paraBreak.MyParent && paraBreak.MyItemInfo.IsTable && paraBreak.YSize < ySpaceOnCurPage && paraBreak.MyParent.MyItemInfo.DisplayText.ToUpper().Contains("TABLE"))
|
||||
// paraBreak = paraBreak.MyParent;
|
||||
//paraBreak.ShowPageBreak(999, paraBreak.MyItemInfo.ShortPath, "Yes",paraBreak.YTop, paraBreak.YSize, paraBreak.Height, false);
|
||||
//_MyLog.InfoFormat("Place to break\r\n==>'Place to Break',{0},'{1}','{2}'"
|
||||
//, paraBreak.MyItemInfo.ItemID, paraBreak.MyItemInfo.MyDocVersion.MyFolder.Name, paraBreak.MyItemInfo.ShortPath);
|
||||
|
@ -1573,7 +1573,7 @@ namespace Volian.Print.Library
|
||||
XOffset += diff;
|
||||
adjustAgain = false;
|
||||
}
|
||||
else
|
||||
else if(mytab != null)
|
||||
{
|
||||
float adjusttab = (itemInfo.MyParent.IsHigh) ? itemInfo.FormatStepData.AdjHighLevelTab ?? 0 : 0;
|
||||
mytab.XOffset += (mytab.Width + adjusttab);
|
||||
|
Loading…
x
Reference in New Issue
Block a user