Enable paragraph wrapping by default in the table component

This commit is contained in:
Adrian-George Bostan 2018-10-07 19:31:03 +03:00
parent 555b70017e
commit af04a44ab1

View File

@ -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