Moves setStyle to be the first set property
This allows other settings as width to be overriden
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user