From 96248fe5f19f2df3e0adc24bb9e098996a75e0db Mon Sep 17 00:00:00 2001 From: Nikolai Date: Fri, 26 Aug 2016 11:37:34 +0100 Subject: [PATCH] Edge also has problems with `bringToFront` (#4848) --- docs/examples/choropleth-example.html | 2 +- docs/examples/choropleth.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/examples/choropleth-example.html b/docs/examples/choropleth-example.html index 15d30db3..0985a638 100644 --- a/docs/examples/choropleth-example.html +++ b/docs/examples/choropleth-example.html @@ -111,7 +111,7 @@ fillOpacity: 0.7 }); - if (!L.Browser.ie && !L.Browser.opera) { + if (!L.Browser.ie && !L.Browser.opera && !L.Browser.edge) { layer.bringToFront(); } diff --git a/docs/examples/choropleth.md b/docs/examples/choropleth.md index 4dda687f..1bf88038 100644 --- a/docs/examples/choropleth.md +++ b/docs/examples/choropleth.md @@ -126,12 +126,12 @@ Now let's make the states highlighted visually in some way when they are hovered fillOpacity: 0.7 }); - if (!L.Browser.ie && !L.Browser.opera) { + if (!L.Browser.ie && !L.Browser.opera && !L.Browser.edge) { layer.bringToFront(); } } -Here we get access to the layer that was hovered through `e.target`, set a thick grey border on the layer as our highlight effect, also bringing it to the front so that the border doesn't clash with nearby states (but not for IE or Opera, since they have problems doing `bringToFront` on `mouseover`). +Here we get access to the layer that was hovered through `e.target`, set a thick grey border on the layer as our highlight effect, also bringing it to the front so that the border doesn't clash with nearby states (but not for IE, Opera or Edge, since they have problems doing `bringToFront` on `mouseover`). Next we'll define what happens on `mouseout`: @@ -330,7 +330,7 @@ Enjoy the result on [the top of this page](#map) or on a [separate page](choropl fillOpacity: 0.7 }); - if (!L.Browser.ie && !L.Browser.opera) { + if (!L.Browser.ie && !L.Browser.opera && !L.Browser.edge) { layer.bringToFront(); }