diff options
author | johnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-21 23:55:39 +0000 |
---|---|---|
committer | johnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-21 23:55:39 +0000 |
commit | e9f6b7943f89f02fc7fe8b4039ddf5453eba48f0 (patch) | |
tree | 2bb9ea0d139d32a835068e53fe5110b1a55fbcb4 | |
parent | 86412bbe2d0bd85e95e61ed86fc37edcdc415737 (diff) | |
download | chromium_src-e9f6b7943f89f02fc7fe8b4039ddf5453eba48f0.zip chromium_src-e9f6b7943f89f02fc7fe8b4039ddf5453eba48f0.tar.gz chromium_src-e9f6b7943f89f02fc7fe8b4039ddf5453eba48f0.tar.bz2 |
Always refresh the desktop size before showing notifications. This should prevent all the corner cases of misplacement being reported.
BUG=various
TEST=change desktop size, show notifications
Review URL: http://codereview.chromium.org/2824061
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53277 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/notifications/balloon_collection.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/notifications/balloon_collection.cc b/chrome/browser/notifications/balloon_collection.cc index 91311d1..3b66a07 100644 --- a/chrome/browser/notifications/balloon_collection.cc +++ b/chrome/browser/notifications/balloon_collection.cc @@ -152,6 +152,7 @@ void BalloonCollectionImpl::OnBalloonClosed(Balloon* source) { } void BalloonCollectionImpl::PositionBalloons(bool reposition) { + layout_.RefreshSystemMetrics(); gfx::Point origin = layout_.GetLayoutOrigin(); for (Balloons::iterator it = balloons_.begin(); it != balloons_.end(); ++it) { gfx::Point upper_left = layout_.NextPosition((*it)->GetViewSize(), &origin); |