Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Unified Diff: ui/views/controls/tree/tree_view.cc

Issue 14322007: Add line height setting to views::Label & use it for notifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698