Open
Description
When the Shell
uses the SWT.RESIZE
style, the method Shell.setMaximumSize
doesn't work.
test code:
public class Test {
public static void main(String[] args) {
Shell shell = new Shell( SWT.RESIZE ) ;
shell.setSize( 500, 500 ) ;
shell.setMinimumSize( 400, 400 ) ;
// This line of code doesn't work.
shell.setMaximumSize( 600, 600 ) ;
shell.open() ;
Display display = shell.getDisplay() ;
while ( !shell.isDisposed() ) {
if ( !display.readAndDispatch() ) {
display.sleep() ;
}
}
display.dispose() ;
}
}
Environment:
Windows 10,
Eclipse Version: 2024-09 (4.33)