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

Unified Diff: ui/app_list/views/search_box_view.cc

Issue 516943003: Add textfield internal padding from FocusableBorder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 6 years, 3 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
Index: ui/app_list/views/search_box_view.cc
diff --git a/ui/app_list/views/search_box_view.cc b/ui/app_list/views/search_box_view.cc
index 07979ba456915f174a5b6878c8043e3b5709828d..c12eaa8f70a7ab3b9d2e7e41b7d10b2df760ea4f 100644
--- a/ui/app_list/views/search_box_view.cc
+++ b/ui/app_list/views/search_box_view.cc
@@ -94,8 +94,11 @@ SearchBoxView::SearchBoxView(SearchBoxViewDelegate* delegate,
AddChildView(icon_view_);
}
- views::BoxLayout* layout = new views::BoxLayout(
- views::BoxLayout::kHorizontal, kPadding, 0, kPadding);
+ views::BoxLayout* layout =
+ new views::BoxLayout(views::BoxLayout::kHorizontal,
+ kPadding,
+ 0,
+ kPadding - views::Textfield::kTextPadding);
calamity 2014/09/08 03:37:50 This will change the horizontal spacing of everyth
Peter Kasting 2014/09/08 17:45:59 Practically-speaking, what's the problematic effec
calamity 2014/09/09 00:46:38 I see. In that case, we should leave the code as i
Peter Kasting 2014/09/09 01:33:29 But the textfield padding is increasing. Compensa
calamity 2014/09/09 02:34:32 Ah ok. Yeah. It will reduce that padding. At the m
SetLayoutManager(layout);
layout->set_cross_axis_alignment(
views::BoxLayout::CROSS_AXIS_ALIGNMENT_CENTER);

Powered by Google App Engine
This is Rietveld 408576698