diff --git a/morris.js b/morris.js index ab404db..8cba641 100644 --- a/morris.js +++ b/morris.js @@ -68,7 +68,7 @@ Licensed under the BSD-2-Clause License. Morris.pad2 = function(number) { return (number < 10 ? '0' : '') + number; - }; + };ou Morris.Grid = (function(_super) { __extends(Grid, _super); @@ -680,8 +680,8 @@ Licensed under the BSD-2-Clause License. var hoverHeight, hoverWidth, left, parentHeight, parentWidth, top; parentWidth = this.options.parent.innerWidth(); parentHeight = this.options.parent.innerHeight(); - hoverWidth = this.el.outerWidth(); - hoverHeight = this.el.outerHeight(); + hoverWidth = this.el.outerWidth(true); + hoverHeight = this.el.outerHeight(true); left = Math.min(Math.max(0, x - hoverWidth / 2), parentWidth - hoverWidth); if (y != null) { top = y - hoverHeight - 10;