Skip to content

Commit

Permalink
Positioning Fixes. The window might still do some weirdness if you ch…
Browse files Browse the repository at this point in the history
…ange its position when its appearing or vanishing, but the weirdness isn't as weird, and the window will recover and perform correctly on its next entrance or exit.
  • Loading branch information
Matthew Judy committed Dec 3, 2003
1 parent 2404965 commit 7252593
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions StatusWindow.m
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ - (NSRect)setupWindowWithDataSize:(NSSize)dataSize
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 ) {
Expand Down Expand Up @@ -173,7 +175,7 @@ - (NSRect)setupWindowWithDataSize:(NSSize)dataSize
[self setFrame:NSMakeRect( windowOrigin.x,
windowOrigin.y,
windowWidth,
windowHeight) display:YES animate:YES];
windowHeight) display:YES animate:shouldAnimate];

[[[self contentView] subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)];

Expand Down

0 comments on commit 7252593

Please sign in to comment.