diff options
Diffstat (limited to 'chrome/browser/views')
-rwxr-xr-x[-rw-r--r--] | chrome/browser/views/about_chrome_view.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/chrome/browser/views/about_chrome_view.cc b/chrome/browser/views/about_chrome_view.cc index 63fabce..c4b2fdd 100644..100755 --- a/chrome/browser/views/about_chrome_view.cc +++ b/chrome/browser/views/about_chrome_view.cc @@ -486,8 +486,13 @@ void AboutChromeView::DrawTextAndPositionUrl(gfx::Canvas* canvas, gfx::Size sz = link->GetPreferredSize(); gfx::Insets insets = link->GetInsets(); WrapIfWordDoesntFit(sz.width(), font.height(), position, bounds); - *rect = gfx::Rect(position->width(), position->height() - insets.top(), - sz.width(), sz.height()); + int x = position->width(); + int y = position->height(); + + // Links have a border to allow them to be focused. + y -= insets.top(); + + *rect = gfx::Rect(x, y, sz.width(), sz.height()); // Go from relative pixel coordinates (within the label we are drawing on) // to absolute pixel coordinates (relative to the top left corner of the |