mirror of
https://github.com/timberjoegithub/grafana-statusmap.git
synced 2026-07-22 07:49:47 +00:00
Merge pull request #48 from flant/fix_no_method_remove
fix: no property or method remove on IE11
This commit is contained in:
Vendored
+1
-1
@@ -87,7 +87,7 @@ System.register(['angular', 'lodash', 'jquery', 'd3', './libs/d3-scale-chromatic
|
|||||||
}).each(function (d, i) {
|
}).each(function (d, i) {
|
||||||
var thisWidth = this.getBBox().width;
|
var thisWidth = this.getBBox().width;
|
||||||
textWidth.push(thisWidth);
|
textWidth.push(thisWidth);
|
||||||
this.remove(); // remove them just after displaying them
|
this.parentElement.removeChild(this); // remove them just after displaying them in IE friendly way
|
||||||
});
|
});
|
||||||
|
|
||||||
var legendWidth = Math.floor(_.min([graphWidth - 30, (_.max(textWidth) + 3) * valuesNumber]));
|
var legendWidth = Math.floor(_.min([graphWidth - 30, (_.max(textWidth) + 3) * valuesNumber]));
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -174,7 +174,7 @@ function drawDiscreteColorLegend(elem, colorOptions, discreteHelper) {
|
|||||||
.each(function(d,i) {
|
.each(function(d,i) {
|
||||||
let thisWidth = this.getBBox().width;
|
let thisWidth = this.getBBox().width;
|
||||||
textWidth.push(thisWidth);
|
textWidth.push(thisWidth);
|
||||||
this.remove(); // remove them just after displaying them
|
this.parentElement.removeChild(this); // remove them just after displaying them in IE friendly way
|
||||||
});
|
});
|
||||||
|
|
||||||
let legendWidth = Math.floor(_.min([
|
let legendWidth = Math.floor(_.min([
|
||||||
|
|||||||
Reference in New Issue
Block a user