Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shell.setMaximumSize doesn't work. #1552

Open
JVS94 opened this issue Oct 23, 2024 · 1 comment
Open

Shell.setMaximumSize doesn't work. #1552

JVS94 opened this issue Oct 23, 2024 · 1 comment
Assignees
Labels
bug Something isn't working Windows Happens on Windows OS

Comments

@JVS94
Copy link

JVS94 commented Oct 23, 2024

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)

@JVS94 JVS94 closed this as completed Oct 23, 2024
@JVS94 JVS94 reopened this Oct 23, 2024
@IamLRBA
Copy link

IamLRBA commented Oct 24, 2024

@JVS94 c, The Shell.setMaximumSize method seemingly not working as expected, may be due to platform-specific limitations or bugs in SWT.
Please assign the issue to me so that i can try and fix it.
Thanks!

@jukzi jukzi added bug Something isn't working Windows Happens on Windows OS labels Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Windows Happens on Windows OS
Projects
None yet
Development

No branches or pull requests

3 participants