From 8321b74124c22410ad69f1a7724e014d3a4ec065 Mon Sep 17 00:00:00 2001 From: Joel Latino Date: Sat, 9 Aug 2014 12:17:43 +0100 Subject: [PATCH] #33 Gauge component, bug fix for dashboard size in blueprint type --- resources/components/gauge/gaugeComponent.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/components/gauge/gaugeComponent.js b/resources/components/gauge/gaugeComponent.js index 19bf821..0850b57 100644 --- a/resources/components/gauge/gaugeComponent.js +++ b/resources/components/gauge/gaugeComponent.js @@ -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() { @@ -57,7 +57,7 @@ var gaugeComponent = BaseComponent.extend({ } currCol = myself.GUID(); - $("#"+currRow).append("
"); + $("#"+currRow).append("
"); var actualValue, minValue, maxValue, title, subtitle; if(myself.label == undefined){