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

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

Issue 362012: Ensure that report bug dialog is centered when it opens.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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 | « 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/cocoa/bug_report_window_controller.mm
===================================================================
--- chrome/browser/cocoa/bug_report_window_controller.mm (revision 30815)
+++ chrome/browser/cocoa/bug_report_window_controller.mm (working copy)
@@ -96,7 +96,9 @@
}
- (void)runModalDialog {
- [NSApp runModalForWindow:[self window]];
+ NSWindow* bugReportWindow = [self window];
+ [bugReportWindow center];
Avi (use Gerrit) 2009/11/04 22:50:55 The docs say that -center is called automatically
+ [NSApp runModalForWindow:bugReportWindow];
}
- (IBAction)sendReport:(id)sender {
« 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