### Eclipse Workspace Patch 1.0 #P org.eclipse.gef Index: src/org/eclipse/gef/ui/parts/ScrollingGraphicalViewer.java =================================================================== RCS file: /cvsroot/tools/org.eclipse.gef/plugins/org.eclipse.gef/src/org/eclipse/gef/ui/parts/ScrollingGraphicalViewer.java,v retrieving revision 1.15 diff -u -r1.15 ScrollingGraphicalViewer.java --- src/org/eclipse/gef/ui/parts/ScrollingGraphicalViewer.java 19 May 2010 20:27:55 -0000 1.15 +++ src/org/eclipse/gef/ui/parts/ScrollingGraphicalViewer.java 6 Sep 2010 09:21:36 -0000 @@ -22,6 +22,7 @@ import org.eclipse.gef.EditPart; import org.eclipse.gef.GraphicalEditPart; +import org.eclipse.gef.handles.HandleBounds; /** * A Graphical Viewer implementation which uses a @@ -88,7 +89,9 @@ super.reveal(part); Viewport port = getFigureCanvas().getViewport(); IFigure target = ((GraphicalEditPart) part).getFigure(); - Rectangle exposeRegion = target.getBounds().getCopy(); + Rectangle exposeRegion = target instanceof HandleBounds ? + ((HandleBounds) target).getHandleBounds().getCopy() : + target.getBounds().getCopy(); target = target.getParent(); while (target != null && target != port) { target.translateToParent(exposeRegion);