Merge pull request #600 from DamonOehlman/filter-tweak
Tweaked DOM util opacity to only apply in IE when opacity !== 1
This commit is contained in:
commit
409e5d729b
@ -98,7 +98,7 @@ L.DomUtil = {
|
|||||||
|
|
||||||
setOpacity: function (el, value) {
|
setOpacity: function (el, value) {
|
||||||
if (L.Browser.ie) {
|
if (L.Browser.ie) {
|
||||||
el.style.filter = 'alpha(opacity=' + Math.round(value * 100) + ')';
|
el.style.filter = value !== 1 ? 'alpha(opacity=' + Math.round(value * 100) + ')' : '';
|
||||||
} else {
|
} else {
|
||||||
el.style.opacity = value;
|
el.style.opacity = value;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user