Bug 235076 - Maximizing shell does not fix location when size is already maximal
Summary: Maximizing shell does not fix location when size is already maximal
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.4   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Silenio Quarti CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-02 04:58 EDT by Markus Keller CLA
Modified: 2019-09-06 16:10 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.