git.ithinksw.org
/
ITKit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Huge audit of ITKit, mostly everything has been updated to current coding
[ITKit.git]
/
ITSlideVerticallyWindowEffect.m
diff --git
a/ITSlideVerticallyWindowEffect.m
b/ITSlideVerticallyWindowEffect.m
old mode 100755
(executable)
new mode 100644
(file)
index
7237620
..
1f60933
--- a/
ITSlideVerticallyWindowEffect.m
+++ b/
ITSlideVerticallyWindowEffect.m
@@
-187,15
+187,16
@@
{
CGAffineTransform transform;
NSPoint translation;
{
CGAffineTransform transform;
NSPoint translation;
+ NSRect winFrame = [_window frame];
translation.x = -( [_window frame].origin.x );
if ( [_window verticalPosition] == ITWindowPositionTop ) {
translation.x = -( [_window frame].origin.x );
if ( [_window verticalPosition] == ITWindowPositionTop ) {
-
translation.y = ( (([_window frame].size.height * 2) - ([[_window screen] frame].size.height - [_window frame].origin.y)) - distance)
;
+
translation.y = (winFrame.size.height * 2) - ([[NSScreen mainScreen] frame].size.height - winFrame.origin.y) - distance
;
} else if ( [_window verticalPosition] == ITWindowPositionBottom ) {
} else if ( [_window verticalPosition] == ITWindowPositionBottom ) {
- translation.y =
-( [[_window screen] frame].size.height - [_window frame].origin.y - distance )
;
+ translation.y =
winFrame.origin.y + distance - [[NSScreen mainScreen] frame].size.height
;
} else {
} else {
- translation.y =
-( [[_window screen] frame].size.height - [_window frame].origin.y - [_window frame].size.height )
;
+ translation.y =
winFrame.origin.y + winFrame.size.height - [[NSScreen mainScreen] frame].size.height
;
}
transform = CGAffineTransformMakeTranslation( translation.x, translation.y );
}
transform = CGAffineTransformMakeTranslation( translation.x, translation.y );