MCPcopy Create free account
hub / github.com/OpenIntroStat/ims / paddingToCss

Function paddingToCss

libs/htmlwidgets-1.5.3/htmlwidgets.js:190–192  ·  view source on GitHub ↗
(paddingObj)

Source from the content-addressed store, hash-verified

188
189 // Convert an unpacked padding object to a CSS value
190 function paddingToCss(paddingObj) {
191 return paddingObj.top + "px " + paddingObj.right + "px " + paddingObj.bottom + "px " + paddingObj.left + "px";
192 }
193
194 // Makes a number suitable for CSS
195 function px(x) {

Callers 1

initSizingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected