Bug 235076

Summary: Maximizing shell does not fix location when size is already maximal
Product: [Eclipse Project] Platform Reporter: Markus Keller <markus.kell.r>
Component: SWTAssignee: Silenio Quarti <Silenio_Quarti>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: steve_northover
Version: 3.4   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Markus Keller CLA 2008-06-02 04:58:16 EDT
I20080530-1730

On the Mac, maximizing a shell by clicking the green '+' button does not fix the location when the shell size is already maximal.

To reproduce, run the snippet below, and then click the green '+'. When you uncomment the lines that reduce the size, clicking the '+' works as expected.


public class SnippetShellMax {
    public static void main(String[] args) {
        Display display= new Display();
        Shell shell= new Shell(display);
        Rectangle bounds= display.getClientArea();
        bounds.x+= 100;
        bounds.y+= 100;
//        bounds.width-= 200;
//        bounds.height-= 200;
        shell.setBounds(bounds);
        
        shell.open();
        while (!shell.isDisposed()) {
            if (!display.readAndDispatch())
                display.sleep();
        }
        display.dispose();
    }
}
Comment 1 Eclipse Webmaster CLA 2019-09-06 16:10:22 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.