Commit 486e6f50 authored by estade@chromium.org's avatar estade@chromium.org

rAc: fix appearance of CVC input in autofill suggestion

BUG=277773

Review URL: https://chromiumcodereview.appspot.com/23564004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220689 0039d316-1c4b-4281-b951-d872f2087c98
parent 0db5e968
...@@ -152,7 +152,10 @@ void DrawArrow(gfx::Canvas* canvas, ...@@ -152,7 +152,10 @@ void DrawArrow(gfx::Canvas* canvas,
// expand a single child). // expand a single child).
class SectionRowView : public views::View { class SectionRowView : public views::View {
public: public:
SectionRowView() {} SectionRowView() {
set_border(views::Border::CreateEmptyBorder(10, 0, 0, 0));
}
virtual ~SectionRowView() {} virtual ~SectionRowView() {}
// views::View implementation: // views::View implementation:
...@@ -170,7 +173,8 @@ class SectionRowView : public views::View { ...@@ -170,7 +173,8 @@ class SectionRowView : public views::View {
} }
} }
return gfx::Size(width, height); gfx::Insets insets = GetInsets();
return gfx::Size(width + insets.width(), height + insets.height());
} }
virtual void Layout() OVERRIDE { virtual void Layout() OVERRIDE {
...@@ -1066,7 +1070,7 @@ AutofillDialogViews::SuggestionView::SuggestionView( ...@@ -1066,7 +1070,7 @@ AutofillDialogViews::SuggestionView::SuggestionView(
// TODO(estade): get the sizing and spacing right on this textfield. // TODO(estade): get the sizing and spacing right on this textfield.
decorated_->SetVisible(false); decorated_->SetVisible(false);
decorated_->set_default_width_in_chars(10); decorated_->set_default_width_in_chars(15);
label_container->AddChildView(decorated_); label_container->AddChildView(decorated_);
// TODO(estade): need to get the line height right. // TODO(estade): need to get the line height right.
...@@ -1075,8 +1079,7 @@ AutofillDialogViews::SuggestionView::SuggestionView( ...@@ -1075,8 +1079,7 @@ AutofillDialogViews::SuggestionView::SuggestionView(
label_line_2_->SetMultiLine(true); label_line_2_->SetMultiLine(true);
AddChildView(label_line_2_); AddChildView(label_line_2_);
// TODO(estade): do something about this '2'. SetLayoutManager(new views::BoxLayout(views::BoxLayout::kVertical, 0, 0, 0));
SetLayoutManager(new views::BoxLayout(views::BoxLayout::kVertical, 0, 2, 0));
} }
AutofillDialogViews::SuggestionView::~SuggestionView() {} AutofillDialogViews::SuggestionView::~SuggestionView() {}
......
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