fixed wrong positioning if only x2 value was to out of bounds maybe also need to be tested for y direction

This commit is contained in:
make-ing 2016-02-16 13:54:39 +01:00
parent 17f29984e5
commit 94effaeda7

View file

@ -345,7 +345,7 @@ $(function(){
dx = -svgBB.x + 0.01;
outside = true;
} else if(svgBB.x2 > waBB.x2){
dx = -svgBB.x2 + waBB.x2 - 0.01;
dx = -svgBB.x + 0.01;
outside = true;
}
if(svgBB.y < waBB.y){