Re: Force a GLCanvas size
Posted by Leigh McRae on Feb 01, 2011; 4:29pm
URL: https://forum.jogamp.org/Force-a-GLCanvas-size-tp2393774p2398362.html
This is ridicules. The only way I can get it to work is to add a magic number to the frame size to account for the borders. I don't think the system can handle the canvas having it's size changed in one of it's callbacks. What I'm finding the hardest to understand is whether the GLCanvas is reporting back a size that includes the borders or not. Why can't I just create a GLCanvas, set it's size and then have the Frame pack around it? The initial size on the canvas is correct then the GLDrawableHelper comes around and reshapes it smaller on me.
There is no way I'm the first one to want this behavior.