Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 329986

Summary: Cannot resize figure beyond canvas limits on Mac Cocoa
Product: [Tools] GEF Reporter: <h1055071>
Component: GEF-Legacy GEF (MVC)Assignee: Alexander Nyßen <nyssen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: nyssen, peter
Version: 3.6.1   
Target Milestone: 3.7.1 (Indigo) M5   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:
Bug Depends on: 332599    
Bug Blocks:    

Description CLA 2010-11-11 06:44:05 EST
Build Identifier: M20100909-0800

On Mac Carbon you can resize a figure on the canvas by dragging the resize handle beyond the limits of the canvas and releasing the mouse button. However, this is not possible on Mac Cocoa, the figure remains the same size.

Reproducible: Always
Comment 1 CLA 2010-12-04 13:03:53 EST
Is there a clue as to what causes this?
Comment 2 Alexander Nyßen CLA 2010-12-15 01:34:39 EST
It seems to be an SWT regression. 

When leaving the viewer with the mouse pressed and releasing it outside, on MacOSX Cocoa, the mouse release event is received after the mouse exited event, which causes the drag tracker to be set to null before the mouse release event could complete the resize.

While I do not have have Carbon at hand, I verified that on win xp, where the mechanism is still working, the respective events occur in inverse order, so the mouse release is received before the mouse exited and the drag tracker is thus still available when the mouse release is processed.
Comment 3 Alexander Nyßen CLA 2010-12-15 02:42:40 EST
Created new SWT bug #332599 to keep track of this.
Comment 4 Alexander Nyßen CLA 2010-12-19 06:06:07 EST
Verified that with Eclipse 3.7 N20101218-2000 resizing beyond canvas is operable on MacOSX Cocoa.
Comment 5 CLA 2011-01-31 10:52:03 EST
Tested on Eclipse 3.7 I20110127-2034 and GEF 3.7 I201101272050. I can confirm that this works as expected.

Thanks.