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

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

Issue 3041028: [Mac] Reposition the status bubble whenever adding it to a window.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 5 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 | chrome/browser/cocoa/status_bubble_mac_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/status_bubble_mac.mm
===================================================================
--- chrome/browser/cocoa/status_bubble_mac.mm (revision 54099)
+++ chrome/browser/cocoa/status_bubble_mac.mm (working copy)
@@ -347,8 +347,10 @@
void StatusBubbleMac::Attach() {
// This method may be called several times during the process of creating or
// showing a status bubble to attach the bubble to its parent window.
- if (!is_attached())
+ if (!is_attached()) {
[parent_ addChildWindow:window_ ordered:NSWindowAbove];
+ UpdateSizeAndPosition();
+ }
}
void StatusBubbleMac::Detach() {
« no previous file with comments | « no previous file | chrome/browser/cocoa/status_bubble_mac_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698