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

Unified Diff: ui/views/examples/multiline_example.cc

Issue 950943002: Use ALIGN_TO_HEAD in MultilineExample (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/multiline_example.cc
diff --git a/ui/views/examples/multiline_example.cc b/ui/views/examples/multiline_example.cc
index c6bba49a6a539b455dd02332116bd553c382b761..b85d67d610d0260dc070bcf7c41969021952561b 100644
--- a/ui/views/examples/multiline_example.cc
+++ b/ui/views/examples/multiline_example.cc
@@ -49,7 +49,7 @@ class PreferredSizeLabel : public Label {
class MultilineExample::RenderTextView : public View {
public:
RenderTextView() : render_text_(gfx::RenderText::CreateInstanceForEditing()) {
- render_text_->SetHorizontalAlignment(gfx::ALIGN_CENTER);
+ render_text_->SetHorizontalAlignment(gfx::ALIGN_TO_HEAD);
render_text_->SetColor(SK_ColorBLACK);
render_text_->SetMultiline(true);
SetBorder(Border::CreateSolidBorder(2, SK_ColorGRAY));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698