Commit bad7d5a8 authored by joshua-gould's avatar joshua-gould

row size and column size params

parent 810e26f4
...@@ -1633,6 +1633,27 @@ morpheus.HeatMap.prototype = { ...@@ -1633,6 +1633,27 @@ morpheus.HeatMap.prototype = {
this.updateDataset(); 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.options.parent = null;
this.$tipFollow = $('<div style="left:-1000px; top:-1000px;" class="morpheus-tip-inline"></div>'); this.$tipFollow = $('<div style="left:-1000px; top:-1000px;" class="morpheus-tip-inline"></div>');
this.$tipFollow.appendTo(this.$parent); this.$tipFollow.appendTo(this.$parent);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment