From 0e8c0b67ad38955cc416c97fa24ed5dbd5b4e5f3 Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Fri, 6 Feb 2015 15:02:13 +0100 Subject: [PATCH] Remove custom hover flip code. Fixed upstream. --- web/static/css/graph.css | 15 --------------- web/static/js/graph.js | 22 +--------------------- 2 files changed, 1 insertion(+), 36 deletions(-) diff --git a/web/static/css/graph.css b/web/static/css/graph.css index 1ea9bf1f0..ba703a744 100644 --- a/web/static/css/graph.css +++ b/web/static/css/graph.css @@ -61,21 +61,6 @@ body { width: 40px; } -.graph .detail .x_label.flipped { - right: 0; -} - -.graph .detail .item.flipped { - right: 10px; -} - -.graph .detail .item.flipped:before { - content: "\25b8"; - left: auto; - right: 1px; - font-size: 0.8em; -} - .graph .detail .item.active { line-height: 1.4em; padding: 0.5em; diff --git a/web/static/js/graph.js b/web/static/js/graph.js index c4ae91d2f..568af186d 100644 --- a/web/static/js/graph.js +++ b/web/static/js/graph.js @@ -456,27 +456,7 @@ Prometheus.Graph.prototype.updateGraph = function(reloadGraph) { var swatch = ''; var content = swatch + (series.labels["__name__"] || 'value') + ": " + y + '
'; return content + self.renderLabels(series.labels); - }, - onRender: function() { - var width = this.graph.width; - var element = $(this.element); - - $(".x_label", element).each(function() { - if ($(this).outerWidth() + element.offset().left > width) { - $(this).addClass("flipped"); - } else { - $(this).removeClass("flipped"); - } - }) - - $(".item", element).each(function() { - if ($(this).outerWidth() + element.offset().left > width) { - $(this).addClass("flipped"); - } else { - $(this).removeClass("flipped"); - } - }) - }, + } }); var legend = new Rickshaw.Graph.Legend({