Skip to content

Commit

Permalink
Fix extension action badges with long text.
Browse files Browse the repository at this point in the history
BUG=160069
TEST=manual

Review URL: https://codereview.chromium.org/11364185

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167018 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
tbarzic@chromium.org committed Nov 10, 2012
1 parent 0be097d commit 1c3988f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chrome/browser/extensions/extension_action.cc
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ void ExtensionAction::DoPaintBadge(
int rect_y = bounds.bottom() - bottom_margin - kBadgeHeight;
int rect_width = badge_width;
int rect_x = (badge_width >= kCenterAlignThreshold) ?
(bounds.x() + bounds.width() - badge_width) / 2 :
bounds.x() + (bounds.width() - badge_width) / 2 :
bounds.right() - badge_width;
gfx::Rect rect(rect_x, rect_y, rect_width, rect_height);

Expand Down

0 comments on commit 1c3988f

Please sign in to comment.