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

Unified Diff: chrome/browser/ui/views/find_bar_view.cc

Issue 14367021: Rename ClampToMin and ClampToMax (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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
Index: chrome/browser/ui/views/find_bar_view.cc
diff --git a/chrome/browser/ui/views/find_bar_view.cc b/chrome/browser/ui/views/find_bar_view.cc
index 69182002081b52a9bbe88e10a6d9ba8b0f531c7a..dcc61fc7cf2b9c500e9492db40dac393802e4336 100644
--- a/chrome/browser/ui/views/find_bar_view.cc
+++ b/chrome/browser/ui/views/find_bar_view.cc
@@ -310,7 +310,7 @@ void FindBarView::Layout() {
// We extend the label bounds a bit to give the background highlighting a bit
// of breathing room (margins around the text).
sz.Enlarge(kMatchCountExtraWidth, 0);
- sz.ClampToMin(gfx::Size(kMatchCountMinWidth, 0));
+ sz.SetToMax(gfx::Size(kMatchCountMinWidth, 0));
int match_count_x =
find_previous_button_->x() - kWhiteSpaceAfterMatchCountLabel - sz.width();
int find_text_y = (height() - find_text_->GetPreferredSize().height()) / 2;
« no previous file with comments | « chrome/browser/ui/views/app_list/app_list_controller_win.cc ('k') | chrome/browser/ui/views/location_bar/ev_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698