bugfix: zoom-to-fit on found objects needed an x offset

This commit is contained in:
BigEd 2010-12-19 17:41:16 +00:00
parent cfb726d0e7
commit 21c7a8ca90
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ function hiliteTrans(n){
function zoomToBox(xmin,xmax,ymin,ymax){
var xmid=(xmin+xmax)/2;
var ymid=(ymin+ymax)/2;
var x=xmid/grChipSize*600;
var x=(xmid+400)/grChipSize*600;
var y=600-ymid/grChipSize*600;
var zoom=5; // pending a more careful calculation
moveHere([x,y,zoom]);