Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 119549

Summary: Customize layout dialog shouldn't be placed at 0,0 on OS X
Product: z_Archived Reporter: Jeff Myers <jeff.myers>
Component: VEAssignee: Richard Kulp <richkulp>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Screenshot with the customize layout dialog's titlebar obscured none

Description Jeff Myers CLA 2005-12-06 21:38:37 EST
On OS X, placing windows at location 0,0 causes the window's title bar to be obscured by the operating system's menu bar at the top of the screen.  This prevents you from selecting the title bar to move the window, or hit the close button.  The customize layout dialog is placed at 0,0 by default, so the only way to close it is to hit the toolbar button again.  A default location of 0,20 or so should be ok.

This also applies to classes launched with the Java Beans launcher as well, and the remote vm windows if you enable Show live window.
Comment 1 Jeff Myers CLA 2005-12-06 22:13:20 EST
Created attachment 31267 [details]
Screenshot with the customize layout dialog's titlebar obscured
Comment 2 Richard Kulp CLA 2005-12-07 09:55:46 EST
Is there some system property on OSX to query, or does Display.getClientArea() return the valid corner? I don't want to hardcode it because someone could change the font and thereby make the OS X title bar get bigger.
Comment 3 Richard Kulp CLA 2005-12-07 18:48:24 EST
I just changed it so that the default location is actually 20,20 RELATIVE to the Eclipse workbench shell instead of relative to the whole display. See if that works.

Also, I changed Live Window to display.getClientArea(). See if LiveWindows show up correctly or are they also at (0,0).
Comment 4 Jeff Myers CLA 2005-12-08 18:33:34 EST
Verified working in VE build I20051208.
Comment 5 Richard Kulp CLA 2006-04-18 14:28:40 EDT
Closing
Comment 6 Eclipse Webmaster CLA 2007-07-29 09:18:29 EDT
Changing OS from Mac OS to Mac OS X as per bug 185991