diff --git a/src/file/table/table.ts b/src/file/table/table.ts index 3872fe4df7..1a7b7d6549 100644 --- a/src/file/table/table.ts +++ b/src/file/table/table.ts @@ -52,6 +52,10 @@ export class Table extends XmlComponent { this.root.push(this.properties); this.properties.setBorder(); + if (style) { + this.properties.setStyle(style); + } + if (width) { this.properties.setWidth(width.size, width.type); } else { @@ -98,9 +102,5 @@ export class Table extends XmlComponent { if (layout) { this.properties.setLayout(layout); } - - if (style) { - this.properties.setStyle(style); - } } }