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.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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user