summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/status_bubble_views.cc
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-09 16:08:49 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-09 16:08:49 +0000
commit269ab28cc179018f1e050b3d3332c2007c30422f (patch)
treefb08a02d42e41c9a3ad0eea81e73f971177a122a /chrome/browser/views/status_bubble_views.cc
parentfd1b644e55267bb83696fb970acb01856f65006c (diff)
downloadchromium_src-269ab28cc179018f1e050b3d3332c2007c30422f.zip
chromium_src-269ab28cc179018f1e050b3d3332c2007c30422f.tar.gz
chromium_src-269ab28cc179018f1e050b3d3332c2007c30422f.tar.bz2
Mac: Let status bubble dodge to the right if necessary.
Windows seems to do this either if a shelf is visible or if the status bubble would slide off screen, so chrome/mac now does that too :-/ Note that the right-aligned bubble overlaps a vertical scrollbar if present. That matches windows. BUG=22198 TEST=See bug. Also test that if both popup block bubble and status bubble are at the right, the status bubble should be on top of the popup block bubble. Review URL: http://codereview.chromium.org/372051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31428 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/status_bubble_views.cc')
-rw-r--r--chrome/browser/views/status_bubble_views.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/views/status_bubble_views.cc b/chrome/browser/views/status_bubble_views.cc
index 935b894..9642294 100644
--- a/chrome/browser/views/status_bubble_views.cc
+++ b/chrome/browser/views/status_bubble_views.cc
@@ -655,7 +655,7 @@ void StatusBubbleViews::AvoidMouse() {
view_->SetStyle(StatusView::STYLE_STANDARD_RIGHT);
offset_ = 0;
- // Substract border width + bubble width.
+ // Subtract border width + bubble width.
int right_position_x = window_width - (position_.x() + size_.width());
popup_->SetBounds(gfx::Rect(top_left.x() + right_position_x,
top_left.y() + position_.y(),