@megha-ui/react 1.2.532 → 1.2.534
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.
|
@@ -65,9 +65,10 @@ const GridRow = ({ item, rowStyle, cellStyle, rowHeight, bulkSelect, selectedRow
|
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
currentTooltip = currentTooltip[0];
|
|
68
|
-
const { top } = (_a = currentTooltip.getBoundingClientRect()) !== null && _a !== void 0 ? _a : {};
|
|
68
|
+
const { y, top } = (_a = currentTooltip.getBoundingClientRect()) !== null && _a !== void 0 ? _a : {};
|
|
69
|
+
console.log(currentTooltip.getBoundingClientRect());
|
|
69
70
|
if (top && currentTooltip) {
|
|
70
|
-
const availableHeight = window.innerHeight -
|
|
71
|
+
const availableHeight = window.innerHeight - y;
|
|
71
72
|
const styles = currentTooltip.getAttribute("style");
|
|
72
73
|
currentTooltip.setAttribute("style", `${styles} max-height: ${availableHeight}px; overflow: auto;`);
|
|
73
74
|
}
|
|
@@ -161,7 +162,7 @@ const GridRow = ({ item, rowStyle, cellStyle, rowHeight, bulkSelect, selectedRow
|
|
|
161
162
|
.slice(3)
|
|
162
163
|
.map((item) => `<div>${item}</div>`)
|
|
163
164
|
.join("")}</div>`, onMouseEnter: () => { var _a; return checkAvailableForTooltip((_a = item.id.value.toString()) !== null && _a !== void 0 ? _a : colIndex.toString()); }, children: ["+", " ", cellData.value.toString().split(">>").slice(3)
|
|
164
|
-
.length, " ", "more", _jsx(Tooltip, { className: "custom-tooltip", clickable: true,
|
|
165
|
+
.length, " ", "more", _jsx(Tooltip, { className: "custom-tooltip", clickable: true, id: (_b = item.id.value.toString()) !== null && _b !== void 0 ? _b : colIndex.toString(), place: "top" })] }))] })) : (_jsxs(_Fragment, { children: [_jsxs("span", { "data-tooltip-id": (_c = item.id.value.toString()) !== null && _c !== void 0 ? _c : colIndex.toString(), "data-tooltip-html": `<div class="flex flex-col">${cellData.value
|
|
165
166
|
.toString()
|
|
166
167
|
.split(">>")
|
|
167
168
|
.map((item) => `<div>${item}</div>`)
|
package/package.json
CHANGED