NSPopover detached window bad content origin with autolayout
| Originator: | me | ||
| Number: | rdar://10499798 | Date Originated: | 29-Nov-2011 02:58 PM |
| Status: | Open | Resolved: | |
| Product: | Mac OS X | Product Version: | 10.7.3 (11D50) |
| Classification: | UI/Usability | Reproducible: | Always |
29-Nov-2011 02:58 PM Jonathon Mah: 'PopoverWindowBug.zip' and 'Pop.png' were successfully uploaded 29-Nov-2011 02:58 PM Jonathon Mah: See attached Xcode project. When detaching a popover into its own window, if the new window uses autolayout, the origin of the window's contentView is set to (0, -8), clipping the content and leaving an empty area below the titlebar. This offset remains when resizing the window. Expected behavior: The content view is where it would be, had the window been sent -orderFront: or something. After it has been detached, when popping up again the popover displays with the pre-detach style instead of the toothed callout style. (With dragging, it's possible to return the popover to its initial state.) Expected behavior: The popover appears with its initial style, not dependant on whether it was detached in a previous incarnation.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!