Community
Participate
Working Groups
I20060411 Calling Shell::getClientArea on a Shell without trims has the side effect of moving the client area by one pixel up- and leftwards. I will attach a snippet showing the problem.
Created attachment 38400 [details] ClientAreaSideEffect.java Run the snippet, which creates a main shell and a SWT.NONE shell on top of it. Move the mouse around a little and watch the shell contents switch by one pixel when the getClientArea call is made in the 100th readAndDispatch loop.
Created attachment 43119 [details] Shell.java patch This patch proposes a fix for this problem. It prevents the client area from being moved by ensuring the client area is positioned within the shell border when forceResize is called by getClientArea.
Fixed > 20060609