Fixed logic for Shrinking Tables where the Bottom message needs to be adjusted.
This commit is contained in:
parent
804da7a3ca
commit
bb037ba06d
@ -2134,8 +2134,9 @@ namespace Volian.Print.Library
|
|||||||
{ // Adjusted Continue Message Y Offset
|
{ // Adjusted Continue Message Y Offset
|
||||||
//DebugPagination.WriteLine("====>> {0},'{1}'", msg_yLocation, MyItemInfo.ShortPath);
|
//DebugPagination.WriteLine("====>> {0},'{1}'", msg_yLocation, MyItemInfo.ShortPath);
|
||||||
//msg_yLocation = (float) MyPageHelper.BottomContent - SixLinesPerInch; // Account for how low the lowest Item is on the page
|
//msg_yLocation = (float) MyPageHelper.BottomContent - SixLinesPerInch; // Account for how low the lowest Item is on the page
|
||||||
|
float msg_yLocationOld =msg_yLocation= yBottomMargin + (docstyle.Layout.FooterLength ?? 0);
|
||||||
|
if (MyPageHelper.BottomContent != null)
|
||||||
msg_yLocation = Math.Min(yBottomMargin + (docstyle.Layout.FooterLength ?? 0), (float)MyPageHelper.BottomContent - SixLinesPerInch);// RHM20150525 - Table Scrunch
|
msg_yLocation = Math.Min(yBottomMargin + (docstyle.Layout.FooterLength ?? 0), (float)MyPageHelper.BottomContent - SixLinesPerInch);// RHM20150525 - Table Scrunch
|
||||||
float msg_yLocationOld = yBottomMargin + (docstyle.Layout.FooterLength ?? 0);
|
|
||||||
if (msg_yLocationOld != msg_yLocation)
|
if (msg_yLocationOld != msg_yLocation)
|
||||||
_MyLog.WarnFormat("Continue Message Moved from {0} to {1} for {2}", msg_yLocationOld, msg_yLocation, this);// RHM20150525 - Table Scrunch
|
_MyLog.WarnFormat("Continue Message Moved from {0} to {1} for {2}", msg_yLocationOld, msg_yLocation, this);// RHM20150525 - Table Scrunch
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user