Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 108801
Collapse All | Expand All

(-)Window.java (-3 / +6 lines)
Lines 941-950 Link Here
941
		Rectangle result = new Rectangle(preferredSize.x, preferredSize.y,
941
		Rectangle result = new Rectangle(preferredSize.x, preferredSize.y,
942
				preferredSize.width, preferredSize.height);
942
				preferredSize.width, preferredSize.height);
943
943
944
		Monitor mon = getClosestMonitor(getShell().getDisplay(), Geometry
944
		Monitor monitor = shell.getDisplay().getPrimaryMonitor();
945
				.centerPoint(result));
945
		Composite parent = shell.getParent();
946
		if (parent != null) {
947
			monitor = parent.getMonitor();
948
		}
946
949
947
		Rectangle bounds = mon.getClientArea();
950
		Rectangle bounds = monitor.getClientArea();
948
951
949
		if (result.height > bounds.height) {
952
		if (result.height > bounds.height) {
950
			result.height = bounds.height;
953
			result.height = bounds.height;

Return to bug 108801