Bug 286630 - ScrollPane shows selection handles of selected objects even if object is not visible in viewport
Summary: ScrollPane shows selection handles of selected objects even if object is not ...
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy Draw2d (show other bugs)
Version: 3.4   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-14 08:10 EDT by Jens Kuebler CLA
Modified: 2009-08-14 08:10 EDT (History)
0 users

See Also:


Attachments
Screenshot of the selection error (16.19 KB, image/jpeg)
2009-08-14 08:10 EDT, Jens Kuebler CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.