Bug 380586 - ScrollingGraphicalViewer won't scroll automatically when moving nodes outside of viewer's visible area
Summary: ScrollingGraphicalViewer won't scroll automatically when moving nodes outside...
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy GEF (MVC) (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-24 16:25 EDT by Shenxue Zhou CLA
Modified: 2012-05-24 16:33 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shenxue Zhou CLA 2012-05-24 16:25:29 EDT
In GEF based graphical editors, if I drag a node outside the visible area of the editor's canvas, scrollbars will appear after the mouse is released. But the editor won't scroll to reveal the dragged node. User has to scroll the editor manually in order to see the dragged node.

I've tried to call ScrollingGraphicalViewer's reveal() method after the node is dragged. It only works if part of the node is still in the current visible area of the canvas. If the node is moved "far" away, it won't scroll the editor to reveal the node.

Is there a workaround for this issue?