Designer: the new relation box is often not completely visible

This commit is contained in:
Marc Delisle
2010-11-07 07:49:55 -05:00
parent 67eb6f6ca6
commit f26a91317c

View File

@@ -517,7 +517,7 @@ function Click_field(T, f, PK) // table field
}
var left = Glob_X - (document.getElementById('layer_new_relation').offsetWidth>>1);
document.getElementById('layer_new_relation').style.left = left + 'px';
var top = Glob_Y - document.getElementById('layer_new_relation').offsetHeight - 10;
var top = Glob_Y - document.getElementById('layer_new_relation').offsetHeight + 40;
document.getElementById('layer_new_relation').style.top = top + 'px';
document.getElementById('layer_new_relation').style.visibility = "visible";
link_relation += '&T2=' + T + '&F2=' + f;