diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-28 18:59:51 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-28 18:59:51 +0000 |
commit | 693cf6f3e2b84d6a293703a57ee32c227f44f7b3 (patch) | |
tree | 811c213152ab28385a3dcc0e4b1e463ec5bb34ea /chrome/browser/gtk | |
parent | e47fc4154e49b4ba87e0d77b334df5018c53b108 (diff) | |
download | chromium_src-693cf6f3e2b84d6a293703a57ee32c227f44f7b3.zip chromium_src-693cf6f3e2b84d6a293703a57ee32c227f44f7b3.tar.gz chromium_src-693cf6f3e2b84d6a293703a57ee32c227f44f7b3.tar.bz2 |
gtk: Clip the tab title to the content height and not the font height. The font height is a design measure and should not be used for a bounding box.
BUG=20401
TEST=Open google.com in a tab. Tab title should be fully visible and not clipped.
Review URL: http://codereview.chromium.org/179022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24765 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk')
-rw-r--r-- | chrome/browser/gtk/tabs/tab_renderer_gtk.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/gtk/tabs/tab_renderer_gtk.cc b/chrome/browser/gtk/tabs/tab_renderer_gtk.cc index f90974d..6a60e2b 100644 --- a/chrome/browser/gtk/tabs/tab_renderer_gtk.cc +++ b/chrome/browser/gtk/tabs/tab_renderer_gtk.cc @@ -629,8 +629,7 @@ void TabRendererGtk::Layout() { } else { title_width = std::max(local_bounds.width() - title_left, 0); } - title_bounds_.SetRect(title_left, title_top, title_width, - title_font_height_); + title_bounds_.SetRect(title_left, title_top, title_width, content_height); } favicon_bounds_.set_x( |