Commit 4ebe767f authored by Mathieu Giraud's avatar Mathieu Giraud

scatterplot.js: system grid update v13

No special case when there is no system_selected.
The least the sp_systems move, the better, even if there is a white space at the right.
parent 1efdee91
......@@ -801,13 +801,8 @@ ScatterPlot.prototype = {
}
if (this.splitY != "bar" && this.use_system_grid && this.m.system_available.length > 1 ){
if (this.m.system_selected.length >1){
this.gridSizeW = 0.8*this.resizeW;
this.gridSizeH = 1*this.resizeH;
}else{
this.gridSizeW = 0.92*this.resizeW;
this.gridSizeH = 1*this.resizeH;
}
}else{
this.gridSizeW = this.resizeW;
this.gridSizeH = this.resizeH;
......@@ -841,7 +836,6 @@ ScatterPlot.prototype = {
if (this.m.system_selected.indexOf(system) != -1 ) enabled = true
var xpos = 0.8
if (this.m.system_selected.length <= 1) xpos=0.92
if (system != this.m.germlineV.system){
this.systemGrid["label"].push( {"text": system, "enabled": enabled, "x" : xpos+0.01, "y" : ((i*2)+1)/(n*2) })
......
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