]> source.dussan.org Git - sonarqube.git/commitdiff
fix treemap widget
authorStas Vilchik <vilchiks@gmail.com>
Wed, 6 Jan 2016 09:06:30 +0000 (10:06 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 6 Jan 2016 09:19:23 +0000 (10:19 +0100)
server/sonar-web/src/main/js/widgets/old/treemap.js

index e6368e53c62dc10420961f7a9bd6f299d7cf983a..ffc4faf67b56720e414587d7dcaa01fa973bb6ea 100644 (file)
@@ -281,7 +281,6 @@ import _ from 'underscore';
     this.maxResultsReachedLabel.classed('max-results-reached-message', true);
     this.renderLegend(box);
     this.renderBreadcrumbs(box);
-    this.renderTreemap();
     return window.SonarWidgets.BaseWidget.prototype.render.apply(this, arguments);
   };
 
@@ -291,7 +290,7 @@ import _ from 'underscore';
     if (this.components().length) {
       this.box.style('height', (this.height()) + 'px');
       this.treemap.size([this.width(), this.height()]);
-      this.cells.data(this.getNodes());
+      this.renderTreemap();
       this.positionCells();
     }
   };