mirror of
https://github.com/unidoc/unipdf.git
synced 2025-04-30 13:48:51 +08:00
Enable paragraph wrapping by default in the table component
This commit is contained in:
parent
555b70017e
commit
af04a44ab1
@ -691,15 +691,15 @@ func (cell *TableCell) SetContent(vd VectorDrawable) error {
|
||||
switch t := vd.(type) {
|
||||
case *Paragraph:
|
||||
if t.defaultWrap {
|
||||
// Default paragraph settings in table: no wrapping.
|
||||
t.enableWrap = false // No wrapping.
|
||||
// Enable wrapping by default.
|
||||
t.enableWrap = true
|
||||
}
|
||||
|
||||
cell.content = vd
|
||||
case *StyledParagraph:
|
||||
if t.defaultWrap {
|
||||
// Default styled paragraph settings in table: no wrapping.
|
||||
t.enableWrap = false // No wrapping.
|
||||
// Enable wrapping by default.
|
||||
t.enableWrap = true
|
||||
}
|
||||
|
||||
cell.content = vd
|
||||
|
Loading…
x
Reference in New Issue
Block a user