Skip to content

Commit

Permalink
#33 Gauge component, bug fix for dashboard size in blueprint type
Browse files Browse the repository at this point in the history
  • Loading branch information
latinojoel committed Aug 9, 2014
1 parent 3267b28 commit 8321b74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/components/gauge/gaugeComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ var gaugeComponent = BaseComponent.extend({

gridSize: function(rowNum){
if(rowNum == 1){
return [1, "col-md-12 span-24"];
return [1, "100%"];
}else if(rowNum > 3){
return [4, "col-md-3 span-6"];
return [4, "25%"];
}

return [2, "col-md-6 span-12"];
return [2, "50%"];
},

update : function() {
Expand Down Expand Up @@ -57,7 +57,7 @@ var gaugeComponent = BaseComponent.extend({
}

currCol = myself.GUID();
$("#"+currRow).append("<div class='"+gridConf[1]+"' id ="+currCol+"></div>");
$("#"+currRow).append("<div style='float: left; width: "+gridConf[1]+";' id ="+currCol+"></div>");

var actualValue, minValue, maxValue, title, subtitle;
if(myself.label == undefined){
Expand Down

0 comments on commit 8321b74

Please sign in to comment.