Parented Window is not position relative to parent window with Cocoa Widgetset
Original Reporter info from Mantis: accSone
-
Reporter name:
Original Reporter info from Mantis: accSone
- Reporter name:
Description:
There is a bug in the CreateHandle function that doesn't add a parented window as a child. Once adding the window as a child it is not positioned relative to the parent but to the screen itself (because Cocoas NSWindow.setframe function only set the frame relative to the screen)
Steps to reproduce:
Compile the attached project with Carbon, press the button. The window will be showed relative to the main window. Move the main window and the child window will move too.
Compile the project with Cocoa, press the button: You will see the window positioned on the left/top of your screen. Move the main window and the child window will not move
Additional information:
See fix
Mantis conversion info:
- Mantis ID: 25359
- OS: OSX
- OS Build: 10.6.8
- Platform: darwin x86_64
- Version: 1.3 (SVN)
- Fixed in version: 1.3 (SVN)
- Fixed in revision: 43481 (#863c0b71)
- Monitored by: » accSone (accSone)
- Target version: 1.3 (SVN)