Skip to content

Commit

Permalink
Fixes distored images in IE11 by wrapping img in div
Browse files Browse the repository at this point in the history
This is #4230 for the 2.2 branch.
  • Loading branch information
fredj committed Jan 8, 2019
1 parent f55fe86 commit 32aea43
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions contribs/gmf/src/directives/partials/layertree.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@
ng-click="::gmfLayertreeCtrl.toggleActive(layertreeCtrl)"
ng-if="::!layertreeCtrl.node.children" ng-class="::{'gmf-layertree-no-layer-icon' : !gmfLayertreeCtrl.getLegendIconURL(layertreeCtrl)}"
class="gmf-layertree-layer-icon">

<img
ng-if="::(legendIconUrl=gmfLayertreeCtrl.getLegendIconURL(layertreeCtrl))"
ng-src="{{::legendIconUrl}}">
</img>
<div><!--This div is required for flex issues with IE11-->
<img
ng-if="::(legendIconUrl=gmfLayertreeCtrl.getLegendIconURL(layertreeCtrl))"
ng-src="{{::legendIconUrl}}">
</img>
</div>
</a>

<a
Expand Down

0 comments on commit 32aea43

Please sign in to comment.