Bug 647 - SWT scrolling of GLCanvas doesn't work under Mac OS Mountain Lion
Summary: SWT scrolling of GLCanvas doesn't work under Mac OS Mountain Lion
Status: CONFIRMED
Alias: None
Product: Jogl
Classification: JogAmp
Component: macosx (show other bugs)
Version: 2.4.0
Hardware: pc_x86_64 macosx
: P4 normal
Assignee: Petros Koutsolampros
URL:
Depends on:
Blocks: 674
  Show dependency treegraph
 
Reported: 2012-12-01 14:31 CET by samuel.gratzl
Modified: 2016-03-31 21:29 CEST (History)
3 users (show)

See Also:
Type: DEFECT
SCM Refs:
Workaround: ---


Attachments
test classes for showing the bug (3.43 KB, application/zip)
2012-12-01 14:31 CET, samuel.gratzl
Details
ScrolledComposite issues with multiple GLCanvas. (2.00 KB, application/x-7z-compressed)
2016-03-31 21:23 CEST, Matt Larson
Details
MacOSX bug view (26.69 KB, image/png)
2016-03-31 21:28 CEST, Matt Larson
Details
Windows working view (44.40 KB, image/png)
2016-03-31 21:29 CEST, Matt Larson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description samuel.gratzl 2012-12-01 14:31:17 CET
Created attachment 392 [details]
test classes for showing the bug

see also http://forum.jogamp.org/SWT-ScrolledComposite-not-working-under-Mac-Mountain-Lion-td4027271.html

I tested to wrap a com.jogamp.opengl.swt.GLCanvas with an org.eclipse.swt.custom.ScrolledComposite in order to create scrollbars if the window is too small. If you now moves the scrollbars the glcanvas window should also move. 

This works perfectly under Win 64 and Ubuntu 64 but not under Mac Mountain Lion. 

As an attachment there are three simple tests: 

The first wraps a SWT canvas with an scrolled composite to show what I expect. The other one uses a SWT GLCanvas, which should behave similarly. The last one uses the SWT-AWT bridge, but this doesn't work either. 

tested using jogl 2.0-rc11 with SWT from latest eclipse juno (org.eclipse.swt.cocoa.macosx.x86_64_3.100.1.v4234e.jar)
Comment 1 Matt Larson 2016-03-31 21:20:28 CEST
I was able to reproduce Samuel Gratzl's bug on MacOSX 10.10.3, while there is no issue under Windows7.

Additionally, I've found what I believe is a related issue.  On MacOSX 10.10.3 a ScrolledComposite that contains multiple GLCanvas each in Composite instances does not display correctly as well.

In this case, the individual GLCanvas views appear to render on each other.
Comment 2 Matt Larson 2016-03-31 21:23:53 CEST
Created attachment 776 [details]
ScrolledComposite issues with multiple GLCanvas.

The ScrollingMultiPane class demonstrates a broken behavior between jogamp 2.3.2 com.jogamp.opengl.swt.GLCanvas and SWT ScrolledComposite.

On Win7 this displays as three different color triangles each in 300x400 panes that can be vertically scrolled.

In MacOSX 10.10.3, the 3 views conflict with each other and display incorrectly when scrolled.
Comment 3 Matt Larson 2016-03-31 21:28:50 CEST
Created attachment 777 [details]
MacOSX bug view
Comment 4 Matt Larson 2016-03-31 21:29:19 CEST
Created attachment 778 [details]
Windows working view