Skip to content

Commit

Permalink
Merge pull request #39 from rashidkpc/master
Browse files Browse the repository at this point in the history
fix wrong height on rows
  • Loading branch information
Rashid Khan committed Apr 10, 2013
2 parents b829030 + 890a10d commit dd15b2c
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 13 deletions.
2 changes: 1 addition & 1 deletion common/css/bootstrap.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions common/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
color: #000;
}

.main {
box-shadow:0 3px 5px rgba(0, 0, 0, 0.4) inset, 0 -3px 5px rgba(0, 0, 0, 0.4) inset;
}

.kibana-row {
margin-left: 15px;
margin-bottom: 15px;
Expand All @@ -15,6 +19,10 @@
color: #eee;
}

.navbar-inner {
border-width: 0 0 0px;
}

.row-close {
color: #bbb;
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</div>
</div>
</div>
<div class="container-fluid">
<div class="container-fluid main">
<div class="row-fluid">
<div ng-view></div>
</div>
Expand Down
16 changes: 10 additions & 6 deletions js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ angular.module('kibana.controllers', [])
};
};

$scope.row_style = function(row) {
return { 'min-height': row.collapse ? '5px' : row.height }
}

$scope.alert = function(title,text,severity,timeout) {
var alert = {
title: title,
Expand Down Expand Up @@ -96,15 +100,15 @@ angular.module('kibana.controllers', [])
_.defaults($scope.row,_d)


$scope.init = function(){
$scope.init = function() {
$scope.reset_panel();
}

$scope.toggle_row = function(row) {
row.collapse = row.collapse ? false : true;
if (!row.collapse) {
$timeout(function() {
$scope.send_render();
$scope.$broadcast('render')
});
}
}
Expand All @@ -120,11 +124,11 @@ angular.module('kibana.controllers', [])

$scope.reset_panel = function() {
$scope.panel = {
loading: false,
error: false,
span: 3,
loading : false,
error : false,
span : 3,
editable: true,
group: ['default'],
group : ['default'],
};
};

Expand Down
10 changes: 8 additions & 2 deletions panels/histogram/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ angular.module('kibana.histogram', [])
steps: false
},
bars: { show: scope.panel.bars, fill: 1, barWidth: barwidth/1.8 },
points: { show: scope.panel.points, fill: 1, fillColor: false},
points: { show: scope.panel.points, fill: 1, fillColor: false, radius: 5},
shadowSize: 1
},
yaxis: { show: scope.panel['y-axis'], min: 0, color: "#000" },
Expand All @@ -258,7 +258,13 @@ angular.module('kibana.histogram', [])
color: "#eee",
hoverable: true,
},
colors: ['#EB6841','#00A0B0','#6A4A3C','#EDC951','#CC333F']
colors: ['#86B22D',
'#BF6730',
'#1D7373',
'#BFB930',
'#BF3030',
'#77207D'
]
})

// Work around for missing legend at initialization
Expand Down
2 changes: 1 addition & 1 deletion panels/hits/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ angular.module('kibana.hits', [])
color: "#eee",
hoverable: true,
},
colors: ['#EB6841','#00A0B0','#6A4A3C','#EDC951','#CC333F']
colors: ['#86B22D','#BF6730','#1D7373','#BFB930','#BF3030','#77207D']
})

// Work around for missing legend at initialization
Expand Down
2 changes: 1 addition & 1 deletion panels/pie/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ angular.module('kibana.pie', [])
//grid: { hoverable: true, clickable: true },
grid: { hoverable: true, clickable: true },
legend: { show: false },
colors: ['#EB6841','#00A0B0','#6A4A3C','#EDC951','#CC333F']
colors: ['#86B22D','#BF6730','#1D7373','#BFB930','#BF3030','#77207D']
};

// Populate element
Expand Down
2 changes: 1 addition & 1 deletion partials/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="row-fluid container" style="margin-top:10px">
<!-- Rows -->
<div ng-controller="dashcontrol" ng-init="init()"></div>
<div class="row-fluid kibana-row" ng-controller="RowCtrl" ng-repeat="(row_name, row) in dashboards.rows" style="min-height:{{row.height}};">
<div class="row-fluid kibana-row" ng-controller="RowCtrl" ng-repeat="(row_name, row) in dashboards.rows" ng-style="row_style(row)">
<div class="row-control">
<div class="row-fluid row-header" style="padding:0px;margin:0px;height:0px">
<div style="vertical-align:bottom">
Expand Down

0 comments on commit dd15b2c

Please sign in to comment.