in riff-raff/public/javascripts/rickshaw.js [1419:1444]
this.setSize = function(args) {
args = args || {};
if (!this.element) return;
if (typeof window !== 'undefined') {
var style = window.getComputedStyle(this.element.parentNode, null);
var elementWidth = parseInt(style.getPropertyValue('width'), 10);
if (!args.auto) {
var elementHeight = parseInt(style.getPropertyValue('height'), 10);
}
}
this.width = args.width || elementWidth || this.graph.width * berthRate;
this.height = args.height || elementHeight || this.graph.height;
this.vis
.attr('width', this.width)
.attr('height', this.height * (1 + berthRate));
var berth = this.height * berthRate;
this.element.style.top = -1 * berth + 'px';
};