提交 37a4ec92 编写于 作者: K kohsuke

Improved the layout algorithm of the matrix project visualization.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@33802 71c3de6d-444a-0410-be80-ed276b4c234a
上级 ff47b97f
...@@ -87,8 +87,11 @@ public abstract class Layouter<T> { ...@@ -87,8 +87,11 @@ public abstract class Layouter<T> {
z.add(nonTrivialAxes.get(0)); z.add(nonTrivialAxes.get(0));
break; break;
case 2: case 2:
x.add(nonTrivialAxes.get(0)); // use the longer axis in Y
y.add(nonTrivialAxes.get(1)); Axis a = nonTrivialAxes.get(0);
Axis b = nonTrivialAxes.get(1);
x.add(a.size() > b.size() ? b : a);
y.add(a.size() > b.size() ? a : b);
break; break;
default: default:
// for size > 3, use x and y, and try to pack y more // for size > 3, use x and y, and try to pack y more
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册