/discours svg height
authorChloe Laisne <chloe.laisne@gmail.com>
Wed, 24 Aug 2016 17:56:21 +0200
changeset 267 a2872152f568
parent 266 0e1880fa7bd3
child 268 19313f7c04ab
/discours svg height
cms/app-client/app/components/discourses-component.js
--- a/cms/app-client/app/components/discourses-component.js	Wed Aug 24 17:48:50 2016 +0200
+++ b/cms/app-client/app/components/discourses-component.js	Wed Aug 24 17:56:21 2016 +0200
@@ -23,7 +23,7 @@
             var newMin = Math.floor((average - oldMin)), newMax = Math.floor((oldMax - average));
 
             var width = self.$().parent().width();
-            var height = self.$().parent().height() - self.$().siblings().height();
+            var height = self.$().parent().height() - self.$().siblings().outerHeight(true);
 
             var bubble = d3.layout.pack()
                 .sort(function comparator(a, b) { return a.value + b.value; })