Skip to content

Commit e6cdff8

Browse files
committed
Fix miasligned labels on state changes
1 parent 9aae237 commit e6cdff8

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
1.9.48
22
* FIX: Fix exclude_members related PHP 8.1 compatibility issue (#400 Thanks to ekapsner-ne)
3+
* FIX: misaligned labels on state changes
34
* Hide lines of excluded members in automaps (#402 Thanks to ekapsner-ne)
45
* Add support for SVG based icon sets (#405 Thanks to dnelson-nagios)
56

share/frontend/nagvis-js/js/NagVisStatefulObject.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -445,16 +445,12 @@ var NagVisStatefulObject = NagVisObject.extend({
445445

446446
this.bIsFlashing = show;
447447
if(show) {
448-
oObjIcon.style.border = "5px solid " + sColor;
448+
oObjIcon.style.outline = "5px solid " + sColor;
449449
oObjIcon.classList.add(sFlashingClass);
450-
oObjIconDiv.style.top = (this.parseCoord(this.conf.y, 'y') - 5) + 'px';
451-
oObjIconDiv.style.left = (this.parseCoord(this.conf.x, 'x') - 5) + 'px';
452450
oObjIconDiv.classList.add(sFlashingDivClass);
453451
} else {
454-
oObjIcon.style.border = "none";
452+
oObjIcon.style.outline = "none";
455453
oObjIcon.classList.remove(sFlashingClass);
456-
oObjIconDiv.style.top = this.parseCoord(this.conf.y, 'y') + 'px';
457-
oObjIconDiv.style.left = this.parseCoord(this.conf.x, 'x') + 'px';
458454
oObjIconDiv.classList.remove(sFlashingDivClass);
459455
}
460456

0 commit comments

Comments
 (0)