Why doesn't 'getCoordinates' show up in the following code?
canvas.getCoordinates() throws an error of "getCoordinates is not a

I'm making a newbie error somewhere.

    var canvas = new Element('canvas', {
      width:  this.xform(data.size[0]) + 16 + 'px',
      height: this.xform(data.size[1]) + 16 + 'px',

      // mixin to Element for canvases
      getCoordinates: function(element){
        var position = this.getPosition(element), size = this.getSize
        var obj = {left: position.x, top: position.y, width: size.x,
height: size.y};
        obj.right = obj.left + obj.width;
        obj.bottom = obj.top + obj.height;
        return obj;

You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to