summaryrefslogtreecommitdiffstats
path: root/chrome/views/label.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/views/label.cc')
-rw-r--r--chrome/views/label.cc2
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();
}