Difference between revisions of "Adapt highlighting of objects"

From JSXGraph Wiki
Jump to: navigation, search
Line 11: Line 11:
  
 
JXG.Line.prototype.highlight = function(){
 
JXG.Line.prototype.highlight = function(){
     infobox.coords = new JXG.Coords(JXG.COORDS_BY_SCREEN,[this.board.mousePosRel[0]+20,this.board.mousePosRel[1]+20]);
+
     infobox.coords = new JXG.Coords(JXG.COORDS_BY_SCREEN,[infobox.board.mousePosRel[0]+20,infobox.board.mousePosRel[1]+20]);
 
     //infobox.plainTextStr = this.name;
 
     //infobox.plainTextStr = this.name;
 
     //infobox.setPosition = (this.board.mousePosAbs[0]+20)+'px';
 
     //infobox.setPosition = (this.board.mousePosAbs[0]+20)+'px';

Revision as of 17:31, 18 December 2009

The JavaScript code