Permalink
Browse files

FIX: Fixed repeated zoom of background image on state updates (fixes #…

  • Loading branch information...
LarsMichelsen committed Jan 7, 2018
1 parent 7ed8b18 commit f710cb1b58e195e1ff924df9218e2bb9b5fc7484
Showing with 4 additions and 1 deletion.
  1. +1 −0 ChangeLog
  2. +3 −1 share/frontend/nagvis-js/js/ViewMap.js
View
@@ -1,6 +1,7 @@
1.9.5
Frontend:
* FIX: Fixed wrong hostname label in service hover menus
* FIX: Fixed repeated zoom of background image on state updates
Worldmap:
* FIX: Fixed errors when saving viewport as new map
@@ -292,9 +292,11 @@ var ViewMap = View.extend({
var oImage = document.createElement('img');
oImage.setAttribute('id', 'backgroundImage');
document.getElementById('map').appendChild(oImage);
addZoomHandler(oImage, true);
}
addZoomHandler(oImage, true);
oImage.removeAttribute("width");
oImage.removeAttribute("height");
oImage.src = sImage;
} else if (oImage) {
oImage.parentNode.removeChild(oImage);

0 comments on commit f710cb1

Please sign in to comment.