@megha-ui/react 1.2.535 → 1.2.537

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.
@@ -1293,7 +1293,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
1293
1293
  alignItems: "center",
1294
1294
  justifyContent: "center",
1295
1295
  padding: "1rem",
1296
- }, children: "Show/Hide columns" }), _jsx("div", { style: { flexGrow: 1, overflow: "auto", padding: "1rem" }, children: filterColumns.map((column) => {
1296
+ }, children: "Show/Hide columns" }), _jsx("div", { id: `grid-content`, style: { flexGrow: 1, overflow: "auto", padding: "1rem" }, children: filterColumns.map((column) => {
1297
1297
  if (!column.fixed) {
1298
1298
  return (_jsxs("div", { style: {
1299
1299
  display: "flex",
@@ -68,6 +68,8 @@ const GridRow = ({ item, rowStyle, cellStyle, rowHeight, bulkSelect, selectedRow
68
68
  const { y, top } = (_a = currentTooltip.getBoundingClientRect()) !== null && _a !== void 0 ? _a : {};
69
69
  console.log(currentTooltip.getBoundingClientRect());
70
70
  if (top && currentTooltip) {
71
+ const gridContent = document.querySelector("#grid-content");
72
+ console.log(gridContent === null || gridContent === void 0 ? void 0 : gridContent.getBoundingClientRect());
71
73
  const availableHeight = window.innerHeight - y;
72
74
  const styles = currentTooltip.getAttribute("style");
73
75
  currentTooltip.setAttribute("style", `${styles} max-height: ${availableHeight}px; overflow: auto;`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.535",
3
+ "version": "1.2.537",
4
4
  "description": "A collection of reusable UI components for React applications, built with TypeScript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",