diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-15 01:01:12 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-15 01:01:12 +0000 |
commit | 7410acb43f5ec233007662abf8bf53ce413fa785 (patch) | |
tree | b8c104325d95e905d91aebc336e84d87bd190278 /chrome/views | |
parent | 8a3065b9e2259968651c8e504f8d806a400baaab (diff) | |
download | chromium_src-7410acb43f5ec233007662abf8bf53ce413fa785.zip chromium_src-7410acb43f5ec233007662abf8bf53ce413fa785.tar.gz chromium_src-7410acb43f5ec233007662abf8bf53ce413fa785.tar.bz2 |
Label::SizeToFit was not setting the width properly.
BUG=3432
TEST=See bug.
Review URL: http://codereview.chromium.org/7337
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3390 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views')
-rw-r--r-- | chrome/views/label.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/views/label.cc b/chrome/views/label.cc index ec6e5cb..91f4d94 100644 --- a/chrome/views/label.cc +++ b/chrome/views/label.cc @@ -355,7 +355,7 @@ void Label::SizeToFit(int max_width) { if (max_width > 0) label_width = std::min(label_width, max_width); - SetBounds(x(), y(), width(), 0); + SetBounds(x(), y(), label_width, 0); SizeToPreferredSize(); } |