MCPcopy Create free account
hub / github.com/microsoft/SandDance / addDiv

Function addDiv

docs/app/js/sanddance-app.js:6850–6854  ·  view source on GitHub ↗
(parentElement, className)

Source from the content-addressed store, hash-verified

6848 return el;
6849}
6850function addDiv(parentElement, className) {
6851 const div = addEl("div", parentElement);
6852 if (className) div.className = className;
6853 return div;
6854}
6855function outerSize(el) {
6856 const cs = getComputedStyle(el);
6857 const height = parseFloat(cs.marginTop) + parseFloat(cs.paddingTop) + parseFloat(cs.borderTopWidth) + el.offsetHeight + parseFloat(cs.borderBottomWidth) + parseFloat(cs.paddingBottom) + parseFloat(cs.marginBottom);

Callers

nothing calls this directly

Calls 1

addElFunction · 0.70

Tested by

no test coverage detected