diff --git a/web/static/css/graph.css b/web/static/css/graph.css index 5a84cbaabe..0e2718ccad 100644 --- a/web/static/css/graph.css +++ b/web/static/css/graph.css @@ -8,6 +8,8 @@ body { .graph { position: relative; + min-height: 400px; + overflow-x: hidden; } svg { @@ -19,5 +21,4 @@ svg { display: inline-block; vertical-align: top; margin: 0 0 0 0px; - background- } diff --git a/web/static/css/prometheus.css b/web/static/css/prometheus.css index c085d0f868..96a8ca84b5 100644 --- a/web/static/css/prometheus.css +++ b/web/static/css/prometheus.css @@ -35,19 +35,9 @@ input:not([type=submit]):not([type=file]):not([type=button]) { float: right; } -.graph { - min-height: 400px; - overflow-x: hidden; -} - -div.legend { - display: block; - overflow: scroll; -} - input { margin: 0; - border: 1px solid black; + border: 1px solid gray; } select { diff --git a/web/static/js/graph.js b/web/static/js/graph.js index 799bc1c9b5..e2bc92fce5 100644 --- a/web/static/js/graph.js +++ b/web/static/js/graph.js @@ -384,6 +384,7 @@ Prometheus.Graph.prototype.updateGraph = function(reloadGraph) { self.changeHandler(); }; + Prometheus.Graph.prototype.resizeGraph = function() { var self = this; self.rickshawGraph.configure({