Author: dazarov
Date: 2008-09-16 09:20:22 -0400 (Tue, 16 Sep 2008)
New Revision: 10250
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/ParamListEditPart.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2770
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/ParamListEditPart.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/ParamListEditPart.java 2008-09-16
09:33:47 UTC (rev 10249)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/ParamListEditPart.java 2008-09-16
13:20:22 UTC (rev 10250)
@@ -87,7 +87,10 @@
protected void refreshVisuals() {
Point loc = getPageWrapperModel().getPage().getLocation().getCopy();
- loc.y +=
25+getPageWrapperModel().getPage().getOutputLinks().size()*NodeFigure.LINK_HEIGHT;
+ int links = getPageWrapperModel().getPage().getOutputLinks().size();
+ if(links == 0)
+ links = 1;
+ loc.y += 25+links*NodeFigure.LINK_HEIGHT;
size = new Dimension(200, getPageWrapperModel().getPage().getChildren().size()*19);
adjustForGrid(loc);