Commit 13021a6b authored by mukai@chromium.org's avatar mukai@chromium.org

Ensure the margin for uber tray popup arrow position.

BUG=128472
TEST=manually

Review URL: https://chromiumcodereview.appspot.com/10377183

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137665 0039d316-1c4b-4281-b951-d872f2087c98
parent b0ed0e3a
...@@ -210,6 +210,10 @@ class SystemTrayBubbleBorder : public views::BubbleBorder { ...@@ -210,6 +210,10 @@ class SystemTrayBubbleBorder : public views::BubbleBorder {
if (arrow_type_ == ARROW_TYPE_BOTTOM) { if (arrow_type_ == ARROW_TYPE_BOTTOM) {
int tip_x = base::i18n::IsRTL() ? arrow_offset_ : int tip_x = base::i18n::IsRTL() ? arrow_offset_ :
owner_->width() - arrow_offset_; owner_->width() - arrow_offset_;
if (tip_x < kArrowPaddingFromRight + kArrowWidth / 2)
tip_x = kArrowPaddingFromRight + kArrowWidth / 2;
if (tip_x > owner_->width() - kArrowPaddingFromRight - kArrowWidth / 2)
tip_x = owner_->width() - kArrowPaddingFromRight - kArrowWidth / 2;
int left_base_x = tip_x - kArrowWidth / 2; int left_base_x = tip_x - kArrowWidth / 2;
int left_base_y = y; int left_base_y = y;
int tip_y = left_base_y + kArrowHeight; int tip_y = left_base_y + kArrowHeight;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment