diff --git a/src/ui/heat_map.js b/src/ui/heat_map.js index 4eb81d79bf455929cb42a2cca63d6b3c17c001f6..6432556942aa0592e7d767d8e52c3420da0c485a 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);