summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-30 23:21:30 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-30 23:21:30 +0000
commit486e6f50b65ff0d8725a4cf5a6c9b8d350d3f18e (patch)
tree9b7bbcf5b9b9bba9b2104e7a306be7a242362d79
parent0db5e96878f2bfa8dd5c76f5cbc47aa6b4dddb7f (diff)
downloadchromium_src-486e6f50b65ff0d8725a4cf5a6c9b8d350d3f18e.zip
chromium_src-486e6f50b65ff0d8725a4cf5a6c9b8d350d3f18e.tar.gz
chromium_src-486e6f50b65ff0d8725a4cf5a6c9b8d350d3f18e.tar.bz2
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
-rw-r--r--chrome/browser/ui/views/autofill/autofill_dialog_views.cc13
1 files changed, 8 insertions, 5 deletions
diff --git a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
index 7ff0aab..157f141 100644
--- a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
@@ -152,7 +152,10 @@ void DrawArrow(gfx::Canvas* canvas,
// expand a single child).
class SectionRowView : public views::View {
public:
- SectionRowView() {}
+ SectionRowView() {
+ set_border(views::Border::CreateEmptyBorder(10, 0, 0, 0));
+ }
+
virtual ~SectionRowView() {}
// views::View implementation:
@@ -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 {
@@ -1066,7 +1070,7 @@ AutofillDialogViews::SuggestionView::SuggestionView(
// TODO(estade): get the sizing and spacing right on this textfield.
decorated_->SetVisible(false);
- decorated_->set_default_width_in_chars(10);
+ decorated_->set_default_width_in_chars(15);
label_container->AddChildView(decorated_);
// TODO(estade): need to get the line height right.
@@ -1075,8 +1079,7 @@ AutofillDialogViews::SuggestionView::SuggestionView(
label_line_2_->SetMultiLine(true);
AddChildView(label_line_2_);
- // TODO(estade): do something about this '2'.
- SetLayoutManager(new views::BoxLayout(views::BoxLayout::kVertical, 0, 2, 0));
+ SetLayoutManager(new views::BoxLayout(views::BoxLayout::kVertical, 0, 0, 0));
}
AutofillDialogViews::SuggestionView::~SuggestionView() {}