Moves setStyle to be the first set property

This allows other settings as width to be overriden
This commit is contained in:
ramonmata
2019-10-21 13:09:04 -05:00
parent c61d24d8d4
commit 358d578cd7

View File

@ -52,6 +52,10 @@ export class Table extends XmlComponent {
this.root.push(this.properties); this.root.push(this.properties);
this.properties.setBorder(); this.properties.setBorder();
if (style) {
this.properties.setStyle(style);
}
if (width) { if (width) {
this.properties.setWidth(width.size, width.type); this.properties.setWidth(width.size, width.type);
} else { } else {
@ -98,9 +102,5 @@ export class Table extends XmlComponent {
if (layout) { if (layout) {
this.properties.setLayout(layout); this.properties.setLayout(layout);
} }
if (style) {
this.properties.setStyle(style);
}
} }
} }