Archived
1
0
This commit is contained in:
Jeff
2016-05-03 14:23:45 -04:00
parent 7136b176ee
commit 43bb6e4c5c
2 changed files with 2 additions and 3 deletions

View File

@@ -160,14 +160,13 @@ DynReply.prototype.translate = function(dx, dy) {
}
DynReply.prototype.moveTo = function(x,y) {
console.log(this);
console.log("moveto",x,y);
if(x && y) {
var nx = document.body.clientLeft - x ;
if (nx > 0 && y > 0 && nx < document.body.clientWidth && y < document.body.clientHeight ) {
this.elem.setAttribute("style", "top: "+y+"px; right: "+nx+"px;");
this.x = x;
this.y = y;
console.log(this, this.x, this.y);
}
} else {
console.log("!!", x, y);