Bug 214239 - [ElementSelection] SelectInDiagramHelper#exposeLocation() fails to work in some cases
Summary: [ElementSelection] SelectInDiagramHelper#exposeLocation() fails to work in so...
Status: RESOLVED FIXED
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P3 normal
Target Milestone: 2.1   Edit
Assignee: Alex Boyko CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-03 10:52 EST by Alex Boyko CLA
Modified: 2010-07-19 12:30 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 Alex Boyko CLA 2008-01-03 10:52:25 EST
To reproduce
1. Create a Logic diagram
2. Put two rectangles on the diagram such that their y coordinates are approximately equal
3. Select both rectangles and drag them up off the diagram viewport and drop them there.
4. Try to select both rectangles with the selection tool's marquee rectangle.

Expected: should be able to select both rectangles by dragging the mouse bottom-up

Actual: selection tool fails to scroll the diagram up instead it scrolls it down to 0 y-coordinate when the marquee rectangle is about to go off the viewport.

Problem: there is a typo in SelectInDiagramHelper#exposeLocation(). If viewer needs to be scrolled to negative x or y location this negative x or y is assigned to 0 for some reason.
Comment 1 Alex Boyko CLA 2008-01-03 14:19:16 EST
Committed for 2.1 M4
Comment 2 Richard Gronback CLA 2008-08-13 13:08:37 EDT
[target cleanup] 2.1 M4 was the original target milestone for this bug
Comment 3 Eclipse Webmaster CLA 2010-07-19 12:30:36 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime Diagram was the original product and component for this bug