diff options
author | oshima <oshima@chromium.org> | 2015-02-23 12:39:33 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-23 20:40:01 +0000 |
commit | 6c410e2310953167de42cc27e851dd7be7a35f9c (patch) | |
tree | 75ec8f61bcca2ba842f0ce7da2b1cbed0c817900 /ui/views/examples | |
parent | 4cda8457e67bfd338eb4cd82b94c48084f15685f (diff) | |
download | chromium_src-6c410e2310953167de42cc27e851dd7be7a35f9c.zip chromium_src-6c410e2310953167de42cc27e851dd7be7a35f9c.tar.gz chromium_src-6c410e2310953167de42cc27e851dd7be7a35f9c.tar.bz2 |
Use ALIGN_TO_HEAD in MultilineExample
so that it uses the correct direction depending on the content
R=sky@chromium.org
Review URL: https://codereview.chromium.org/950943002
Cr-Commit-Position: refs/heads/master@{#317643}
Diffstat (limited to 'ui/views/examples')
-rw-r--r-- | ui/views/examples/multiline_example.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/views/examples/multiline_example.cc b/ui/views/examples/multiline_example.cc index c6bba49..b85d67d 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)); |