Skip to content

Commit 9b40265

Browse files
committed
Implemented Tooltip in Bounds
> > Co-authored-by: kev-ngo <[email protected]> Co-authored-by: CourageWolf <[email protected]> Co-authored-by: DennisLpz <[email protected]> Co-authored-by: demircaner <[email protected]>
1 parent dcfd648 commit 9b40265

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/app/components/ComponentMap.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ export default function ComponentMap({
104104
hideTooltip,
105105
} = useTooltip();
106106

107-
const { containerRef, TooltipInPortal } = useTooltipInPortal();
107+
const { containerRef, TooltipInPortal } = useTooltipInPortal({
108+
detectBounds: true,
109+
scroll: true,
110+
});
108111

109112
const tooltipStyles = {
110113
...defaultStyles,

0 commit comments

Comments
 (0)