@megha-ui/react 1.2.538 → 1.2.540
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,14 +65,14 @@ const GridRow = ({ item, rowStyle, cellStyle, rowHeight, bulkSelect, selectedRow
|
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
currentTooltip = currentTooltip[0];
|
|
68
|
-
|
|
69
|
-
console.log(currentTooltip.getBoundingClientRect());
|
|
70
|
-
if (top && currentTooltip) {
|
|
68
|
+
if (currentTooltip) {
|
|
71
69
|
const gridContent = document.querySelector("#grid-content");
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
70
|
+
const { height } = (_a = gridContent === null || gridContent === void 0 ? void 0 : gridContent.getBoundingClientRect()) !== null && _a !== void 0 ? _a : {};
|
|
71
|
+
if (height) {
|
|
72
|
+
const availableHeight = height;
|
|
73
|
+
const styles = currentTooltip.getAttribute("style");
|
|
74
|
+
currentTooltip.setAttribute("style", `${styles} max-height: ${availableHeight}px; overflow: auto;`);
|
|
75
|
+
}
|
|
76
76
|
}
|
|
77
77
|
}, 50);
|
|
78
78
|
};
|
|
@@ -163,7 +163,10 @@ const GridRow = ({ item, rowStyle, cellStyle, rowHeight, bulkSelect, selectedRow
|
|
|
163
163
|
.split(">>")
|
|
164
164
|
.slice(3)
|
|
165
165
|
.map((item) => `<div>${item}</div>`)
|
|
166
|
-
.join("")}</div>`, onMouseEnter: () => {
|
|
166
|
+
.join("")}</div>`, onMouseEnter: () => {
|
|
167
|
+
var _a;
|
|
168
|
+
return checkAvailableForTooltip((_a = item.id.value.toString()) !== null && _a !== void 0 ? _a : colIndex.toString());
|
|
169
|
+
}, children: ["+", " ", cellData.value.toString().split(">>").slice(3)
|
|
167
170
|
.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
|
|
168
171
|
.toString()
|
|
169
172
|
.split(">>")
|
package/package.json
CHANGED