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

Unified Diff: ui/views/window/dialog_client_view.cc

Issue 12543032: Add views::RichLabel, a class which creates multi-line text with mixed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile Created 7 years, 9 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
« no previous file with comments | « ui/views/views.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/dialog_client_view.cc
diff --git a/ui/views/window/dialog_client_view.cc b/ui/views/window/dialog_client_view.cc
index 5a3e503942f2eb488d1da72cc9f27832ce7d0c64..e3b97c68fd1b7931863a51509664b3dd53d2513d 100644
--- a/ui/views/window/dialog_client_view.cc
+++ b/ui/views/window/dialog_client_view.cc
@@ -182,7 +182,7 @@ void DialogClientView::Layout() {
// Layout the footnote view.
if (footnote_view_) {
- const int height = footnote_view_->GetPreferredSize().height();
+ const int height = footnote_view_->GetHeightForWidth(bounds.width());
footnote_view_->SetBounds(bounds.x(), bounds.bottom() - height,
bounds.width(), height);
bounds.Inset(0, 0, 0, height + kRelatedControlVerticalSpacing);
« no previous file with comments | « ui/views/views.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698