Difference between revisions of "Adapt highlighting of objects"

From JSXGraph Wiki
Jump to: navigation, search
Line 30: Line 30:
 
     infobox.innerHTML = this.board.mousePosRel.toString();
 
     infobox.innerHTML = this.board.mousePosRel.toString();
 
     infobox.style.left = (this.board.mousePosRel[0]+20)+'px';
 
     infobox.style.left = (this.board.mousePosRel[0]+20)+'px';
     infobox.style.top =  (this.board.mousePosRel[1]-20)+'px';
+
     infobox.style.top =  (this.board.mousePosRel[1]-10)+'px';
 
     infobox.style.display = 'block';
 
     infobox.style.display = 'block';
 
}
 
}
Line 39: Line 39:
 
     infobox.innerHTML = this.board.mousePosRel.toString();
 
     infobox.innerHTML = this.board.mousePosRel.toString();
 
     infobox.style.left = (this.board.mousePosRel[0]+20)+'px';
 
     infobox.style.left = (this.board.mousePosRel[0]+20)+'px';
     infobox.style.top =  (this.board.mousePosRel[1]-20)+'px';
+
     infobox.style.top =  (this.board.mousePosRel[1]-10)+'px';
 
     infobox.style.display = 'block';
 
     infobox.style.display = 'block';
 
}
 
}

Revision as of 17:45, 18 December 2009

The JavaScript code