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) {
|
switch t := vd.(type) {
|
||||||
case *Paragraph:
|
case *Paragraph:
|
||||||
if t.defaultWrap {
|
if t.defaultWrap {
|
||||||
// Default paragraph settings in table: no wrapping.
|
// Enable wrapping by default.
|
||||||
t.enableWrap = false // No wrapping.
|
t.enableWrap = true
|
||||||
}
|
}
|
||||||
|
|
||||||
cell.content = vd
|
cell.content = vd
|
||||||
case *StyledParagraph:
|
case *StyledParagraph:
|
||||||
if t.defaultWrap {
|
if t.defaultWrap {
|
||||||
// Default styled paragraph settings in table: no wrapping.
|
// Enable wrapping by default.
|
||||||
t.enableWrap = false // No wrapping.
|
t.enableWrap = true
|
||||||
}
|
}
|
||||||
|
|
||||||
cell.content = vd
|
cell.content = vd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user