MCPcopy Index your code
hub / github.com/docker/getting-started / getBordersSize

Function getBordersSize

app/src/static/js/react-bootstrap.js:3322–3326  ·  view source on GitHub ↗
(styles, axis)

Source from the content-addressed store, hash-verified

3320
3321
3322function getBordersSize(styles, axis) {
3323 var sideA = axis === 'x' ? 'Left' : 'Top';
3324 var sideB = sideA === 'Left' ? 'Right' : 'Bottom';
3325 return parseFloat(styles['border' + sideA + 'Width'], 10) + parseFloat(styles['border' + sideB + 'Width'], 10);
3326}
3327
3328function getSize(axis, body, html, computedStyle) {
3329 return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE(10) ? parseInt(html['offset' + axis]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')]) : 0);

Callers 1

getBoundingClientRectFunction · 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…