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

improve 'Layout Graph'.

parent cef42df9
...@@ -168,9 +168,8 @@ ...@@ -168,9 +168,8 @@
var size_y = $('.window').height(); var size_y = $('.window').height();
$.each(data, function (node, pos) { $.each(data, function (node, pos) {
priv.updateElementCoordinate(node, { priv.updateElementCoordinate(node, {
top: Math.floor(pos.top * (canvas_size_y - size_y/2) - size_y/2) + top: Math.floor(pos.top * (canvas_size_y - size_y)) + "px",
"px", left: Math.floor(pos.left * (canvas_size_x - size_x)) + "px"
left: Math.floor(pos.left * (canvas_size_x - size_x/2) - size_x/2) + "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