Project: SWT
Bug 218215 shells created too large with multple monitors
Reported: 2008-02-07 12:12:37 | Status: resolved fixed

Shells are being created at 5/8 display bounds instead of monitor bounds, as a result the more monitors you have the larger you shell gets. patch: ### Eclipse Workspace Patch 1.0 #P org.eclipse.swt Index: Eclipse SWT/wpf/org/eclipse/swt/widgets/Shell.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Shell.java,v retrieving revision 1.28 diff -u -r1.28 Shell.java --- Eclipse SWT/wpf/org/eclipse/swt/widgets/Shell.java 30 Jan 2008 20:39:15 -0000 1.28 +++ Eclipse SWT/wpf/org/eclipse/swt/widgets/Shell.java 7 Feb 2008 17:11:19 -0000 @@ -480,7 +480,7 @@ OS.FrameworkElement_Height (shellHandle, 0); OS.Window_Show (shellHandle); OS.Window_Hide (shellHandle); - Rectangle bounds = display.getBounds(); + Rectangle bounds = getMonitor().getBounds(); OS.FrameworkElement_Width (shellHandle, bounds.width * 5 / 8); OS.FrameworkElement_Height (shellHandle, bounds.height * 5 / 8);

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Shell.java