MCPcopy Create free account
hub / github.com/openscopeproject/InteractiveHtmlBom / paddingDiff

Function paddingDiff

InteractiveHtmlBom/web/table-util.js:356–366  ·  view source on GitHub ↗
(col)

Source from the content-addressed store, hash-verified

354 }
355
356 function paddingDiff(col) {
357
358 if (getStyleVal(col, 'box-sizing') == 'border-box') {
359 return 0;
360 }
361
362 var padLeft = getStyleVal(col, 'padding-left');
363 var padRight = getStyleVal(col, 'padding-right');
364 return (parseInt(padLeft) + parseInt(padRight));
365
366 }
367
368 function getStyleVal(elm, css) {
369 return (window.getComputedStyle(elm, null).getPropertyValue(css))

Callers 2

resizableGridFunction · 0.85
setListenersFunction · 0.85

Calls 1

getStyleValFunction · 0.85

Tested by

no test coverage detected