Commit 6c410e23 authored by oshima's avatar oshima Committed by Commit bot

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}
parent 4cda8457
......@@ -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));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment