try fix
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user