MCPcopy Create free account
hub / github.com/Lobos/react-ui / getOuterHeight

Function getOuterHeight

src/utils/dom.js:54–61  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

52}
53
54export function getOuterHeight (el) {
55 let height = el.clientHeight
56 + tryParseInt(el.style.borderTopWidth)
57 + tryParseInt(el.style.borderBottomWidth)
58 + tryParseInt(el.style.marginTop)
59 + tryParseInt(el.style.marginBottom);
60 return height;
61}
62
63export function getScrollTop () {
64 const dd = document.documentElement;

Callers 2

showOptionsFunction · 0.90
openMethod · 0.90

Calls 1

tryParseIntFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…