-
- /*if (hPos == ITWindowPositionLeft) {
- translation.x = -[_window frame].origin.x;
- } else if (hPos == ITWindowPositionRight) {
- translation.x = -[_window frame].origin.x;
- } else {
- translation.x = -[_window frame].origin.x;
- }*/
- translation.x = -[_window frame].origin.x;
- translation.y = -( screenFrame.size.height - [_window frame].origin.y - [_window frame].size.height );
+
+ translation.x = -winFrame.origin.x;
+ translation.y = winFrame.origin.y + winFrame.size.height - [[NSScreen mainScreen] frame].size.height;