You can adjust the layout variable for w2 and h2 in jit.js: e.g.
//arrange positions to fit the canvas
var t = opt.t, w2 = opt.width / 2
- 100, h2 = opt.height / 2
- 100; //modified for all nodes visible
graph.eachNode(function(u) {
$.each(property, function(p) {
var disp = u.disp[p];
var norm = disp.norm() || 1;
var p = u.getPos(p);
p.$add($C(disp.x * min(Math.abs(disp.x), t) / norm,
disp.y * min(Math.abs(disp.y), t) / norm));
p.x = min(w2, max(-w2, p.x));
p.y = min(h2, max(-h2, p.y));
});
});
It looks very nice in my UI.
Hannie