@ckeditor/ckeditor5-table 48.4.0-alpha.2 → 48.4.0-alpha.3

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.
package/dist/index.js CHANGED
@@ -10891,8 +10891,8 @@ var TableColumnResizeEditing = class extends Plugin {
10891
10891
  function _applyResizingAttributesToTable(viewWriter, viewTable, resizingData) {
10892
10892
  viewWriter.addClass("ck-table-resized", viewTable);
10893
10893
  viewWriter.addClass("ck-table-column-resizer__active", resizingData.elements.viewResizer);
10894
- const figureWidth = Math.max(resizingData.widths.tableWidth, resizingData.widths.viewFigureWidth);
10895
- return resizingData.flags.isPixelMode ? `${toPrecision(figureWidth)}px` : `${toPrecision(figureWidth / resizingData.widths.viewFigureParentWidth * 100)}%`;
10894
+ if (resizingData.flags.isPixelMode) return `${toPrecision(parseFloat(resizingData.elements.modelTable.getAttribute("tableWidth")))}px`;
10895
+ return `${toPrecision(Math.max(resizingData.widths.tableWidth, resizingData.widths.viewFigureWidth) / resizingData.widths.viewFigureParentWidth * 100)}%`;
10896
10896
  }
10897
10897
  }
10898
10898
  /**