From bad7d5a8ac2a93ee0878b08632e9184b470bef2e Mon Sep 17 00:00:00 2001 From: joshua-gould Date: Mon, 4 Apr 2016 13:39:06 -0400 Subject: [PATCH] row size and column size params --- src/ui/heat_map.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/ui/heat_map.js b/src/ui/heat_map.js index 4eb81d7..6432556 100644 --- a/src/ui/heat_map.js +++ b/src/ui/heat_map.js @@ -1633,6 +1633,27 @@ morpheus.HeatMap.prototype = { this.updateDataset(); } + if (this.options.rowSize != null) { + if (this.options.rowSize === 'fit') { + this.heatmap.getRowPositions().setSize(this.getFitRowSize()); + } else { + this.heatmap.getRowPositions().setSize(this.options.rowSize); + } + + } + if (this.options.columnSize != null) { + if (this.options.columnSize === 'fit') { + this.heatmap.getColumnPositions().setSize( + this.getFitColumnSize()); + } else { + this.heatmap.getColumnPositions().setSize( + this.options.columnSize); + } + } + if (this.options.rowSize != null || this.options.columnSize != null) { + this.revalidate(); + } + this.options.parent = null; this.$tipFollow = $('
'); this.$tipFollow.appendTo(this.$parent); -- GitLab