diff -r b4ed4ae6a6dc -r fbf4e1afab01 cms/app-client/app/components/discourses-component.js --- a/cms/app-client/app/components/discourses-component.js Wed Feb 15 10:51:26 2017 +0100 +++ b/cms/app-client/app/components/discourses-component.js Wed Feb 15 22:53:45 2017 +0100 @@ -32,7 +32,10 @@ var array = discourses.map(function (d) { return d.get('count'); }); var width = self.$().parent().width(); - var height = self.$().parent().height() - self.$().siblings().outerHeight(true); + var height = self.$().parent().height(); + self.$().siblings().each(function(elem) { + height -= Ember.$(elem).outerHeight(true); + }); //Determine the minimum circle width var longerStr = _.max( @@ -58,6 +61,8 @@ scale = scale.domain([min, max]).range([scaleFactor, 1]); } + console.log("WIDTH : ", width, "HEIGHT : ", height); + var bubble = d3h.pack() .size([width, height]) .padding(10);