diff options
author | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-23 21:11:14 +0000 |
---|---|---|
committer | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-23 21:11:14 +0000 |
commit | 9d722ada61e1d80f0900a9ed7293b8da6e6153e8 (patch) | |
tree | 46dc0b90a43ce44f896bf4631f8f8c5e57afbe92 /chrome/browser/views/about_chrome_view.cc | |
parent | a129a2bfb9ae935a8f1e56a5e3d4bd50a2168ef0 (diff) | |
download | chromium_src-9d722ada61e1d80f0900a9ed7293b8da6e6153e8.zip chromium_src-9d722ada61e1d80f0900a9ed7293b8da6e6153e8.tar.gz chromium_src-9d722ada61e1d80f0900a9ed7293b8da6e6153e8.tar.bz2 |
Get the About panel to align its links correctly,
but undo a previous change to the way we measure strings in pango.
Review URL: http://codereview.chromium.org/338001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29943 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/about_chrome_view.cc')
-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 |