Difference between revisions of "Adapt highlighting of objects"

From JSXGraph Wiki
Jump to: navigation, search
Line 29: Line 29:
 
JXG.Line.prototype.highlight = function(){
 
JXG.Line.prototype.highlight = function(){
 
     infobox.innerHTML = this.board.mousePosRel.toString();
 
     infobox.innerHTML = this.board.mousePosRel.toString();
     infobox.style.left = (this.board.mousePosRel[0]+10)+'px';
+
     infobox.style.left = (this.board.mousePosRel[0]+0)+'px';
     infobox.style.top =  (this.board.mousePosRel[1]+10)+'px';
+
     infobox.style.top =  (this.board.mousePosRel[1]+0)+'px';
 
     infobox.style.display = 'block';
 
     infobox.style.display = 'block';
 
}
 
}
Line 38: Line 38:
 
c.highlight = function(){
 
c.highlight = function(){
 
     infobox.innerHTML = this.board.mousePosRel.toString();
 
     infobox.innerHTML = this.board.mousePosRel.toString();
     infobox.style.left = (this.board.mousePosRel[0]+10)+'px';
+
     infobox.style.left = (this.board.mousePosRel[0]+0)+'px';
     infobox.style.top =  (this.board.mousePosRel[1]+10)+'px';
+
     infobox.style.top =  (this.board.mousePosRel[1]+0)+'px';
 
     infobox.style.display = 'block';
 
     infobox.style.display = 'block';
 
}
 
}

Revision as of 17:46, 18 December 2009

The JavaScript code