Bug 286630

Summary: ScrollPane shows selection handles of selected objects even if object is not visible in viewport
Product: [Tools] GEF Reporter: Jens Kuebler <kuebler>
Component: GEF-Legacy Draw2dAssignee: gef-inbox <gef-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 3.4   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
Screenshot of the selection error none

Description Jens Kuebler CLA 2009-08-14 08:10:41 EDT
Created attachment 144521 [details]
Screenshot of the selection error

Build ID: I20080617-2000

Steps To Reproduce:
1. Create a scrollpane having a container figure having three child figures.
2. resize the scrollpane within the ui so only two child figures are visible so that the vertical scrollbar appears
3. select the first figure and scroll down the items via the scroll bar
4. see the selection handles still being painted although figure is not visible 

More information:
The problem can be solved within the RelativeLocate#relocate method. This method is called whenever a relocation of a figure relative to a target figure is to be done. The reference figure is contained within a Viewport and may not be visible whereas the SelectionHandle figure resides on another layer and another viewport effectively being visible even if the figure is not. The relocate method calculates the new location of the SelectionHandle but should additionally check whether it is visible.