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

Function outerHeight

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

Source from the content-addressed store, hash-verified

138};
139
140var outerHeight = function outerHeight(element) {
141 var withMargin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
142
143 var height = element.offsetHeight;
144 if (withMargin) {
145 var style = window.getComputedStyle(element);
146 height += parseInt(style.marginTop) + parseInt(style.marginBottom);
147 }
148 return height;
149};
150
151var outerWidth = function outerWidth(element) {
152 var withMargin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected