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

Function hasHorizontalOverflow

docs/app/js/sanddance-app.js:25748–25750  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

25746 * @returns True if element's content overflows
25747 */ parcelHelpers.export(exports, "hasOverflow", ()=>hasOverflow);
25748function hasHorizontalOverflow(element) {
25749 return element.clientWidth < element.scrollWidth;
25750}
25751function hasVerticalOverflow(element) {
25752 return element.clientHeight < element.scrollHeight;
25753}

Callers 1

hasOverflowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected