Permalink
Browse files

IDE-820

  • Loading branch information...
1 parent ecf3fc1 commit 06d961468d5a55e969e59a4bb1349758c49faf5d @cinnndy9 cinnndy9 committed with gamerson Feb 17, 2013
View
4 ...layouttpl.ui/src/com/liferay/ide/layouttpl/ui/policies/PortletLayoutLayoutEditPolicy.java
@@ -224,11 +224,11 @@ protected Object getConstraintFor( Point orgPoint )
int topColumnY = columnBounds.y;
int bottomColumnY = topColumnY + ( (PortletColumnEditPart) columns.get( 0 ) ).getFigure().getBounds().height;
- if( copyPoint.y > bottomColumnY )
+ if( copyPoint.y > bottomColumnY - PortletLayoutEditPart.LAYOUT_MARGIN )
{
constraint.newRowIndex = currentRowIndex + 1;
}
- else if( copyPoint.y < topColumnY )
+ else if( copyPoint.y < topColumnY - PortletLayoutEditPart.LAYOUT_MARGIN )
{
constraint.newRowIndex = currentRowIndex;
}

0 comments on commit 06d9614

Please sign in to comment.