Fix StyledParagraph calculated height inside table

This commit is contained in:
Adrian-George Bostan 2018-09-25 21:54:01 +03:00
parent 3885bb9e20
commit 24a8628bc2

View File

@ -216,7 +216,7 @@ func (table *Table) GeneratePageBlocks(ctx DrawContext) ([]*Block, DrawContext,
sp.SetWidth(w - cell.indent)
}
newh := sp.Height() + sp.margins.bottom + sp.margins.bottom
newh := sp.Height() + sp.margins.top + sp.margins.bottom
newh += 0.5 * sp.getTextHeight() // TODO: Make the top margin configurable?
if newh > h {
diffh := newh - h