Archived
1
0
This commit is contained in:
Jeff
2016-05-03 14:05:27 -04:00
parent 64c5b1589b
commit ee3b067555
2 changed files with 9 additions and 6 deletions

View File

@@ -146,11 +146,14 @@ DynReply.prototype.translate = function(dx, dy) {
}
DynReply.prototype.moveTo = function(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;
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(this.x, this.y);
}
}
}