fix(alerting): various alerting fixes

This commit is contained in:
Torkel Ödegaard
2016-11-06 15:40:02 +01:00
parent 05c124bb1e
commit 2d19af601a
10 changed files with 48 additions and 14 deletions

View File

@@ -100,7 +100,7 @@ export class ThresholdManager {
handleTopPos = defaultHandleTopPos;
} else {
var valueCanvasPos = this.plot.p2c({x: 0, y: value});
handleTopPos = Math.min(Math.max(valueCanvasPos.top, 0), this.height) - 6;
handleTopPos = Math.round(Math.min(Math.max(valueCanvasPos.top, 0), this.height) - 6);
}
var handleElem = $(this.getHandleHtml(handleIndex, model, valueStr));