MCPcopy
hub / github.com/callstack/react-native-paper / overflowBottom

Function overflowBottom

src/components/Tooltip/utils.ts:54–62  ·  view source on GitHub ↗
(
  childrenY: number,
  childrenHeight: number,
  tooltipHeight: number
)

Source from the content-addressed store, hash-verified

52 * The tooltip will be placed at the top of the wrapped element.
53 */
54const overflowBottom = (
55 childrenY: number,
56 childrenHeight: number,
57 tooltipHeight: number
58): boolean => {
59 const { height: layoutHeight } = Dimensions.get('window');
60
61 return childrenY + childrenHeight + tooltipHeight > layoutHeight;
62};
63
64const getTooltipXPosition = (
65 { pageX: childrenX, width: childrenWidth }: ChildrenMeasurement,

Callers 1

getTooltipYPositionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…