@ai-matrx/design-system 0.86.367 → 0.86.368
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/data-table/index.js
CHANGED
|
@@ -8213,7 +8213,11 @@ var MULTI = "multi";
|
|
|
8213
8213
|
function cellTextIsMultiline(cell) {
|
|
8214
8214
|
const lineHeight = Number.parseFloat(getComputedStyle(cell).lineHeight);
|
|
8215
8215
|
const minStep = Number.isFinite(lineHeight) ? lineHeight * 0.75 : 10;
|
|
8216
|
-
const walker = cell.ownerDocument.createTreeWalker(
|
|
8216
|
+
const walker = cell.ownerDocument.createTreeWalker(
|
|
8217
|
+
cell,
|
|
8218
|
+
4
|
|
8219
|
+
/* NodeFilter.SHOW_TEXT: the global is gone once a test env tears down */
|
|
8220
|
+
);
|
|
8217
8221
|
const range = cell.ownerDocument.createRange();
|
|
8218
8222
|
if (typeof range.getClientRects !== "function") return false;
|
|
8219
8223
|
let firstTop = null;
|