mirror of
https://github.com/unidoc/unipdf.git
synced 2025-05-01 22:17:29 +08:00
Merge pull request #304 from adrg/invoice-note-align
Fix invoice notes section alignment
This commit is contained in:
commit
15f437dc92
@ -698,6 +698,7 @@ func (i *Invoice) generateHeaderBlocks(ctx DrawContext) ([]*Block, DrawContext,
|
|||||||
cell := table.NewCell()
|
cell := table.NewCell()
|
||||||
cell.SetHorizontalAlignment(CellHorizontalAlignmentLeft)
|
cell.SetHorizontalAlignment(CellHorizontalAlignmentLeft)
|
||||||
cell.SetVerticalAlignment(CellVerticalAlignmentMiddle)
|
cell.SetVerticalAlignment(CellVerticalAlignmentMiddle)
|
||||||
|
cell.SetIndent(0)
|
||||||
cell.SetContent(i.logo)
|
cell.SetContent(i.logo)
|
||||||
|
|
||||||
i.logo.ScaleToHeight(titleParagraph.Height() + 20)
|
i.logo.ScaleToHeight(titleParagraph.Height() + 20)
|
||||||
@ -738,6 +739,7 @@ func (i *Invoice) generateInformationBlocks(ctx DrawContext) ([]*Block, DrawCont
|
|||||||
table.SetMargins(0, 0, 25, 0)
|
table.SetMargins(0, 0, 25, 0)
|
||||||
|
|
||||||
cell := table.NewCell()
|
cell := table.NewCell()
|
||||||
|
cell.SetIndent(0)
|
||||||
cell.SetContent(addrDivision)
|
cell.SetContent(addrDivision)
|
||||||
|
|
||||||
cell = table.NewCell()
|
cell = table.NewCell()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user