Positioning Fixes. The window might still do some weirdness if you change its positi...
[ITKit.git] / ITSlideVerticallyWindowEffect.m
index a8825ab..7237620 100755 (executable)
         translation.y = ( (([_window frame].size.height * 2) - ([[_window screen] frame].size.height - [_window frame].origin.y)) - distance);
     } else if ( [_window verticalPosition] == ITWindowPositionBottom ) {
         translation.y = -( [[_window screen] frame].size.height - [_window frame].origin.y - distance );
+    } else {
+        translation.y = -( [[_window screen] frame].size.height - [_window frame].origin.y - [_window frame].size.height );
     }
     
     transform = CGAffineTransformMakeTranslation( translation.x, translation.y );