Fixed placement of centered table when high level RNO is longer than the AER substeps

This commit is contained in:
John Jenko 2014-08-08 19:32:09 +00:00
parent 10ae0c3ab1
commit 34dca7cc46

View File

@ -2398,6 +2398,15 @@ namespace Volian.Print.Library
}
if (yOffRight < yoffRightParent) yOffRight = yoffRightParent;
// find the very bottom Yoffset
vlnParagraph parentPar = parent;
while (parentPar != null && parentPar.MyItemInfo.IsStep)
{
float vb = parentPar.YVeryBottom;
if (yOffRight < vb)
yOffRight = vb;
parentPar = parentPar.MyParent;
}
bool rightLonger = yOffRight > yoff;
if (!aerTableOrFigure && itemInfo.RNOLevel == 0) // Centered Table
yoff = ChildrenBelow.Add(cb, itemInfo.Tables, XOffset, rightLonger ? yOffRight : yoff + yoffadj, yOffRight + yoffadj, rnoLevel, maxRNO, formatInfo);