Fixed placement of centered table when high level RNO is longer than the AER substeps
This commit is contained in:
parent
10ae0c3ab1
commit
34dca7cc46
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user