Skip to content

Shell.setMaximumSize doesn't work. #1552

Open
@JVS94

Description

@JVS94

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)

Metadata

Metadata

Assignees

Labels

WindowsHappens on Windows OSbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions