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

Unified Diff: views/controls/textfield/native_textfield_gtk.cc

Issue 2620003: Cleanup of about box (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Split conditional Created 10 years, 7 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
« no previous file with comments | « chrome/browser/views/about_chrome_view.cc ('k') | views/window/window_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/textfield/native_textfield_gtk.cc
diff --git a/views/controls/textfield/native_textfield_gtk.cc b/views/controls/textfield/native_textfield_gtk.cc
index f2f74a94666f288debb06c18a4069e671f55ef90..5da4b78a5ae70782ae9602051f8696baccd473cc 100644
--- a/views/controls/textfield/native_textfield_gtk.cc
+++ b/views/controls/textfield/native_textfield_gtk.cc
@@ -184,8 +184,13 @@ void NativeTextfieldGtk::UpdateBorder() {
return;
if (textfield_->IsMultiLine()) {
- if (!textfield_->draw_border())
+ if (!textfield_->draw_border()) {
gtk_container_set_border_width(GTK_CONTAINER(native_view()), 0);
+
+ // Use margin to match entry with no border
+ SetHorizontalMargins(kTextViewBorderWidth / 2 + 1,
+ kTextViewBorderWidth / 2 + 1);
+ }
} else {
if (!textfield_->draw_border())
gtk_entry_set_has_frame(GTK_ENTRY(native_view()), false);
« no previous file with comments | « chrome/browser/views/about_chrome_view.cc ('k') | views/window/window_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698