From 358d578cd7e1c3b37f331c7ff820be944d84803c Mon Sep 17 00:00:00 2001 From: ramonmata Date: Mon, 21 Oct 2019 13:09:04 -0500 Subject: [PATCH] Moves setStyle to be the first set property This allows other settings as width to be overriden --- src/file/table/table.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); - } } }