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

Unified Diff: chrome/browser/cocoa/view_resizer_pong.mm

Issue 384105: Mac: Animate the bookmark bar showing/hiding. (Closed)
Patch Set: Comments added per rohitrao's review. Created 11 years, 1 month 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 | « chrome/browser/cocoa/toolbar_controller_unittest.mm ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/view_resizer_pong.mm
diff --git a/chrome/browser/cocoa/view_resizer_pong.mm b/chrome/browser/cocoa/view_resizer_pong.mm
index 9246af7fdea6ec6a49aca0307fbd87a254e0eff0..78879e9415de907b913e72fbef2fb94b3ca3f617 100644
--- a/chrome/browser/cocoa/view_resizer_pong.mm
+++ b/chrome/browser/cocoa/view_resizer_pong.mm
@@ -14,6 +14,7 @@
[self setHeight:height];
// Set the view's height and width, in case it uses that as important state.
- [view setFrame:NSMakeRect(100, 100, 250, height)];
+ [view setFrame:NSMakeRect(100, 50,
+ NSWidth([[view superview] frame]) - 50, height)];
}
@end
« no previous file with comments | « chrome/browser/cocoa/toolbar_controller_unittest.mm ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698