pace-table-lib 1.0.57 → 1.0.58
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.
|
@@ -8341,7 +8341,7 @@ function calculateWidthHeightDynamically(content, fontSize, fontFamily, fixedWid
|
|
|
8341
8341
|
document.body.appendChild(div);
|
|
8342
8342
|
const height = div.getBoundingClientRect().height;
|
|
8343
8343
|
div.remove();
|
|
8344
|
-
return height
|
|
8344
|
+
return height;
|
|
8345
8345
|
}
|
|
8346
8346
|
function applyTextRelatedCss(headerArr, flag) {
|
|
8347
8347
|
return headerArr.map((item) => ({
|
|
@@ -17474,15 +17474,19 @@ function StaticTable({
|
|
|
17474
17474
|
newNonFixedColCellWidth,
|
|
17475
17475
|
fixedColWidth
|
|
17476
17476
|
} = useMemo(() => {
|
|
17477
|
-
let colCellH = Table2.RowHeight;
|
|
17478
|
-
let rowCellH = Table2.RowHeight;
|
|
17479
|
-
let nonFixColCellW = Table2.TableWidth;
|
|
17480
|
-
let fixedColCellW = Table2.FixHeaderWidth;
|
|
17477
|
+
let colCellH = Number(Table2.RowHeight);
|
|
17478
|
+
let rowCellH = Number(Table2.RowHeight);
|
|
17479
|
+
let nonFixColCellW = Number(Table2.TableWidth);
|
|
17480
|
+
let fixedColCellW = Number(Table2.FixHeaderWidth);
|
|
17481
17481
|
if (isWrapColHeaderTextOn) {
|
|
17482
|
-
|
|
17482
|
+
if (Number(newColCellHeight) > colCellH) {
|
|
17483
|
+
colCellH = Number(newColCellHeight);
|
|
17484
|
+
}
|
|
17483
17485
|
}
|
|
17484
17486
|
if (isWrapRowHeaderTextOn) {
|
|
17485
|
-
rowCellH
|
|
17487
|
+
if (newRowHeight > rowCellH) {
|
|
17488
|
+
rowCellH = newRowHeight;
|
|
17489
|
+
}
|
|
17486
17490
|
}
|
|
17487
17491
|
if (isFitTableOn) {
|
|
17488
17492
|
const sharedWidth = Math.floor((tableWidth - 5) / columnCount);
|