Skip to content

Commit

Permalink
Fix resize artifacts (hopefully)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.textmate.org/trunk/Tools/CommitWindowProject@5425 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
Chris Thomas committed Oct 10, 2006
1 parent 919cab1 commit 0e4be8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CWTextView.m
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ - (void) mouseDragged:(NSEvent *)event
newFrame.origin.y += scrollFrame.size.height - newFrame.size.height; newFrame.origin.y += scrollFrame.size.height - newFrame.size.height;
} }


[scrollView setNeedsDisplayInRect:[scrollView bounds]];
[scrollView setFrame:newFrame]; [scrollView setFrame:newFrame];
[[NSCursor arrowCursor] set]; [[NSCursor arrowCursor] set];
} }
Expand Down
6 changes: 4 additions & 2 deletions CommitWindowController.m
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -368,9 +368,11 @@ - (void) summaryScrollViewDidResize:(NSNotification *)notification
// Adjust the size of the lower controls // Adjust the size of the lower controls
NSRect currentSummaryFrame = [fSummaryScrollView frame]; NSRect currentSummaryFrame = [fSummaryScrollView frame];
NSRect currentLowerControlsFrame = [fLowerControlsView frame]; NSRect currentLowerControlsFrame = [fLowerControlsView frame];

float deltaV = currentSummaryFrame.size.height - fPreviousSummaryFrame.size.height;


float deltaV = currentSummaryFrame.size.height - fPreviousSummaryFrame.size.height;

[fLowerControlsView setNeedsDisplayInRect:[fLowerControlsView bounds]];

currentLowerControlsFrame.size.height -= deltaV; currentLowerControlsFrame.size.height -= deltaV;


[fLowerControlsView setFrame:currentLowerControlsFrame]; [fLowerControlsView setFrame:currentLowerControlsFrame];
Expand Down

0 comments on commit 0e4be8b

Please sign in to comment.