Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Unified Diff: chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm

Issue 10641010: Merge 143021 - Fix wobbling of find bar. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1180/src/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm
===================================================================
--- chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm (revision 143454)
+++ chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm (working copy)
@@ -424,7 +424,7 @@
[[NSViewAnimation alloc]
initWithViewAnimations:[NSArray arrayWithObjects:dict, nil]];
[animation gtm_setDuration:duration
- eventMask:NSLeftMouseUpMask];
+ eventMask:NSLeftMouseUpMask];
[animation setDelegate:self];
[animation startAnimation];
return animation;
@@ -507,6 +507,8 @@
NSView* view = [self view];
NSRect frame = [view frame];
float x = [self findBarHorizontalPosition];
+ if (frame.origin.x == x)
+ return;
if (animate) {
[moveAnimation_ stopAnimation];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698