mirror of
https://github.com/ansible/awx.git
synced 2024-10-30 22:21:13 +03:00
Take toolbar height into account on job status graph
This commit is contained in:
parent
1c4b8c0676
commit
116e7b2118
@ -36,12 +36,14 @@ angular.module('DashboardGraphs')
|
||||
var w = angular.element($window);
|
||||
|
||||
function adjustGraphSize() {
|
||||
var parentHeight = element.parent().height();
|
||||
var parentHeight = element.parent().parent().height();
|
||||
var toolbarHeight = element.find('.toolbar').height();
|
||||
var container = element.find('svg').parent();
|
||||
var margins = job_status_chart.margin();
|
||||
|
||||
$(container).height(parentHeight - toolbarHeight - margins.bottom);
|
||||
var newHeight = parentHeight - toolbarHeight - margins.bottom;
|
||||
|
||||
$(container).height(newHeight);
|
||||
|
||||
var graph = d3.select(element.find('svg')[0]);
|
||||
var width = parseInt(graph.style('width')) - margins.left - margins.right;
|
||||
|
@ -1,5 +1,5 @@
|
||||
<div class="graph-wrapper job-status-graph">
|
||||
<div class="clearfix">
|
||||
<div class="clearfix toolbar">
|
||||
<div id="job-status-title" class="h6 pull-left">
|
||||
<b>Job Status</b>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user