Index: ui/views/controls/tree/tree_view.cc |
diff --git a/ui/views/controls/tree/tree_view.cc b/ui/views/controls/tree/tree_view.cc |
index 34d65617cf12ae1ab43db3f2820910b052ec1e99..f8181dfdac2830ef3fe0a9fb8b033fe52f993926 100644 |
--- a/ui/views/controls/tree/tree_view.cc |
+++ b/ui/views/controls/tree/tree_view.cc |
@@ -660,7 +660,8 @@ void TreeView::ConfigureInternalNode(TreeModelNode* model_node, |
void TreeView::UpdateNodeTextWidth(InternalNode* node) { |
int width = 0, height = 0; |
gfx::Canvas::SizeStringInt(node->model_node()->GetTitle(), |
- font_, &width, &height, gfx::Canvas::NO_ELLIPSIS); |
+ font_, &width, &height, -1, // -1 = Default line height. |
msw
2013/04/17 20:12:59
nit: skip the -1 comment, the function decl commen
dharcourt
2013/04/17 23:29:40
Done.
|
+ gfx::Canvas::NO_ELLIPSIS); |
node->set_text_width(width); |
} |