Commits

Bruno Harbulot  committed 53a54ed

Implement getTop in CanvasAxisTickRenderer.

  • Participants
  • Parent commits dd65cd0

Comments (0)

Files changed (1)

File src/plugins/jqplot.canvasAxisTickRenderer.js

             return w;
         }
     };
+
+    // return top.
+    $.jqplot.CanvasAxisTickRenderer.prototype.getTop = function(ctx) {
+        if (this._elem) {
+         return this._elem.position().top;
+        }
+        else {
+            return null;
+        }
+    };
     
     $.jqplot.CanvasAxisTickRenderer.prototype.getAngleRad = function() {
         var a = this.angle * Math.PI/180;