ag-common 0.0.718 → 0.0.719

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.
@@ -32,7 +32,7 @@ const react_1 = __importStar(require("react"));
32
32
  const react_dom_1 = require("react-dom");
33
33
  const Base = styled_1.default.div `
34
34
  position: absolute;
35
- z-index: 2;
35
+ z-index: 10;
36
36
  `;
37
37
  const Comp = ({ pos, children, }) => {
38
38
  const ref = (0, react_1.createRef)();
@@ -72,6 +72,9 @@ const Comp = ({ pos, children, }) => {
72
72
  if (pos.hasParent) {
73
73
  top = undefined;
74
74
  }
75
+ else {
76
+ top = pos.parentHeight - size.tooltipHeight;
77
+ }
75
78
  bottom = pos.parentHeight - pos.y;
76
79
  }
77
80
  if (right && right + size.tooltipWidth > pos.parentWidth) {
@@ -90,7 +93,7 @@ const Comp = ({ pos, children, }) => {
90
93
  const Content = (react_1.default.createElement(Base, { "data-type": "tooltip-content", ref: ref, style: Object.assign(Object.assign({ left,
91
94
  right,
92
95
  top,
93
- bottom, zIndex: 10, overflow: 'hidden' }, (!pos.hasParent && { position: 'fixed' })), (!size && { zIndex: -1 })) }, children(pos, size)));
96
+ bottom }, (!pos.hasParent && { position: 'fixed' })), (!size && { zIndex: -1 })) }, children(pos, size)));
94
97
  const e = document.querySelector(`#${pos.portalId}`);
95
98
  if (!pos.hasParent && e) {
96
99
  return (0, react_dom_1.createPortal)(Content, e);
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.718",
2
+ "version": "0.0.719",
3
3
  "name": "ag-common",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",