@zphhhhh/docx-preview 0.4.21 → 0.4.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3500,8 +3500,8 @@
3500
3500
  style["vertical-align"] = values.valueOfTextAlignment(c);
3501
3501
  break;
3502
3502
  case "tcW":
3503
- if (this.options.ignoreWidth) ;
3504
- break;
3503
+ if (this.options.ignoreWidth)
3504
+ break;
3505
3505
  case "tblW":
3506
3506
  style["width"] = values.valueOfSize(c, "w");
3507
3507
  break;
@@ -6593,6 +6593,9 @@
6593
6593
  this.tableVerticalMerges.push(this.currentVerticalMerge);
6594
6594
  this.currentVerticalMerge = {};
6595
6595
  this.currentCellPosition = { col: 0, row: 0 };
6596
+ if (elem.columns) {
6597
+ this.renderTableColumns(elem.columns, oTable);
6598
+ }
6596
6599
  this.renderClass(elem, oTable);
6597
6600
  this.renderStyleValues(elem.cssStyle, oTable);
6598
6601
  let is_overflow;
@@ -6601,9 +6604,6 @@
6601
6604
  oTable.dataset.overflow = Overflow.SELF;
6602
6605
  return oTable;
6603
6606
  }
6604
- if (elem.columns) {
6605
- this.renderTableColumns(elem.columns, oTable);
6606
- }
6607
6607
  oTable.dataset.overflow = yield this.renderChildren(elem, oTable);
6608
6608
  this.currentVerticalMerge = this.tableVerticalMerges.pop();
6609
6609
  this.currentCellPosition = this.tableCellPositions.pop();
@@ -6696,6 +6696,8 @@
6696
6696
  renderDrawing(elem, parent) {
6697
6697
  return __awaiter(this, void 0, void 0, function* () {
6698
6698
  const oDrawing = createElement('span');
6699
+ oDrawing.style.display = 'inline-block';
6700
+ oDrawing.style.position = 'relative';
6699
6701
  oDrawing.style.textIndent = '0px';
6700
6702
  oDrawing.dataset.wrap = elem === null || elem === void 0 ? void 0 : elem.props.wrapType;
6701
6703
  this.renderStyleValues(elem.cssStyle, oDrawing);