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]
/
ITSlideHorizontallyWindowEffect.m
diff --git
a/ITSlideHorizontallyWindowEffect.m
b/ITSlideHorizontallyWindowEffect.m
old mode 100755
(executable)
new mode 100644
(file)
index
f0e5d78
..
60122fd
--- a/
ITSlideHorizontallyWindowEffect.m
+++ b/
ITSlideHorizontallyWindowEffect.m
@@
-187,14
+187,17
@@
{
CGAffineTransform transform;
NSPoint translation;
{
CGAffineTransform transform;
NSPoint translation;
-
+ NSRect winFrame = [_window frame];
+
if ( [_window horizontalPosition] == ITWindowPositionLeft ) {
if ( [_window horizontalPosition] == ITWindowPositionLeft ) {
- translation.x = ( -(
[_window frame]
.origin.x) + distance ) ;
+ translation.x = ( -(
winFrame
.origin.x) + distance ) ;
} else if ( [_window horizontalPosition] == ITWindowPositionRight ) {
} else if ( [_window horizontalPosition] == ITWindowPositionRight ) {
- translation.x = ( -([_window frame].origin.x) - distance ) ;
+ translation.x = ( -(winFrame.origin.x) - distance ) ;
+ } else {
+ translation.x = ( -(winFrame.origin.x) ) ;
}
}
-
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 );
@@
-202,4
+205,6
@@
(CGSWindowID)[_window windowNumber],
transform);
}
(CGSWindowID)[_window windowNumber],
transform);
}
+
+
@end
@end