Commit 3f31db55 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

improve 'Layout Graph'.

parent cef42df9
......@@ -168,9 +168,8 @@
var size_y = $('.window').height();
$.each(data, function (node, pos) {
priv.updateElementCoordinate(node, {
top: Math.floor(pos.top * (canvas_size_y - size_y/2) - size_y/2) +
"px",
left: Math.floor(pos.left * (canvas_size_x - size_x/2) - size_x/2) + "px"
top: Math.floor(pos.top * (canvas_size_y - size_y)) + "px",
left: Math.floor(pos.left * (canvas_size_x - size_x)) + "px"
});
});
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment