Positioning Fixes. The window might still do some weirdness if you change its positi...
[MenuTunes.git] / StatusWindow.m
index 8377ac0..e3dd8a5 100755 (executable)
     float        excessHeight  = 0.0;
     NSPoint      windowOrigin;
     ITImageView *imageView;
-
+    BOOL         shouldAnimate = ( ! (([self visibilityState] == ITWindowAppearingState) ||
+                                      ([self visibilityState] == ITWindowVanishingState)) );
+        
     if ( _sizing == StatusWindowSmall ) {
         divisor = SMALL_DIVISOR;
     } else if ( _sizing == StatusWindowMini ) {
     [self setFrame:NSMakeRect( windowOrigin.x,
                                windowOrigin.y,
                                windowWidth,
-                               windowHeight) display:YES animate:YES];
+                               windowHeight) display:YES animate:shouldAnimate];
 
     [[[self contentView] subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)];