B2017-112: Figures in Supplemental Information pages overlap text if text font is shrunk

This commit is contained in:
Kathy Ruffing 2017-06-08 15:49:14 +00:00
parent 2723d5d6a7
commit 83d746edfd

View File

@ -1845,7 +1845,10 @@ namespace Volian.Print.Library
{ {
float hBefore = pg.Height;// Save initial paragraph height float hBefore = pg.Height;// Save initial paragraph height
AdjustSupInfoTable(pg, scaler,cb); AdjustSupInfoTable(pg, scaler,cb);
NewSupInfoFixChunks(pg,scaler);// Apply multiplier to font size // B2017-112: Don't do the font size change if images.
if (pg.ImageText == null)
{
NewSupInfoFixChunks(pg, scaler);// Apply multiplier to font size
pg.IParagraph.Leading = scaler * pg.IParagraph.Leading; // Adjust leading (line spacing) pg.IParagraph.Leading = scaler * pg.IParagraph.Leading; // Adjust leading (line spacing)
float hAfter = pg.GetParagraphHeight(cb, pg.IParagraph, "", pg.Width); // Calculate new paragraph height float hAfter = pg.GetParagraphHeight(cb, pg.IParagraph, "", pg.Width); // Calculate new paragraph height
pg.Height = hAfter; // Save new Height; pg.Height = hAfter; // Save new Height;
@ -1859,8 +1862,9 @@ namespace Volian.Print.Library
_AdjustForParagraphShrinkage.Add(pg.YOffset, hleading - hAfter); _AdjustForParagraphShrinkage.Add(pg.YOffset, hleading - hAfter);
} }
float yoBefore = pg.YOffset;// Save the offset before float yoBefore = pg.YOffset;// Save the offset before
float yoAfter = pg.YOffset = NewSupInfoFixOffset(pg,scaler);// Calculate the offset after float yoAfter = pg.YOffset = NewSupInfoFixOffset(pg, scaler);// Calculate the offset after
pg.YBottomMost += yoAfter - yoBefore;// Adjust YbottomMost for changes to yOffset pg.YBottomMost += yoAfter - yoBefore;// Adjust YbottomMost for changes to yOffset
}
foreach (vlnParagraph cpg in pg.ChildrenAbove)// Process Children Above foreach (vlnParagraph cpg in pg.ChildrenAbove)// Process Children Above
ReduceSupInfoGroupFontSize(cpg, scaler, cb); ReduceSupInfoGroupFontSize(cpg, scaler, cb);
foreach (vlnParagraph cpg in pg.ChildrenBelow)// Process Children Below foreach (vlnParagraph cpg in pg.ChildrenBelow)// Process Children Below