MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / outerWidth

Function outerWidth

docs/static/js/bulma-carousel.js:151–160  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

149};
150
151var outerWidth = function outerWidth(element) {
152 var withMargin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
153
154 var width = element.offsetWidth;
155 if (withMargin) {
156 var style = window.getComputedStyle(element);
157 width += parseInt(style.marginLeft) + parseInt(style.marginRight);
158 }
159 return width;
160};
161
162var position = function position(element) {
163 return {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected