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:
Rich 2014-03-19 15:31:27 +00:00
parent 0376212e09
commit 6611c3d2a4
2 changed files with 5 additions and 1 deletions

View File

@ -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);

View File

@ -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);