summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorfinnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-19 19:47:24 +0000
committerfinnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-19 19:47:24 +0000
commit0b0bf61ec44f91d6e31fad7b002700632e6f9952 (patch)
treeba1f3736fa090b4aed09e3847fc3008f3111f11c /chrome
parent0da050b91d7341805c3ad9f3d0207aefee08f9e0 (diff)
downloadchromium_src-0b0bf61ec44f91d6e31fad7b002700632e6f9952.zip
chromium_src-0b0bf61ec44f91d6e31fad7b002700632e6f9952.tar.gz
chromium_src-0b0bf61ec44f91d6e31fad7b002700632e6f9952.tar.bz2
The truncation on the match count label (bug 1110432) has been bugging me a bit. This problem has actually improved a bit over time (we used to truncate from the left, but now we are cutting off a small 1 px strip from the bottom). I noticed that we are extending the label one pixel too far down anyway, so by removing that the problem goes away.
BUG=1110432 TEST=Open Find, paste some random text into the Find box (something that will result in 0 matched) and notice that the red background on the match-count label is rectangular, not 6-sided. :) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1047 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/find_in_page_view.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/chrome/browser/find_in_page_view.cc b/chrome/browser/find_in_page_view.cc
index d78f96b..10f9e3b 100644
--- a/chrome/browser/find_in_page_view.cc
+++ b/chrome/browser/find_in_page_view.cc
@@ -55,7 +55,6 @@ static const int kMarginLeftOfFindTextField = 12;
// The margins around the match count label (We add extra space so that the
// background highlight extends beyond just the text).
static const int kMatchCountExtraWidth = 9;
-static const int kMatchCountExtraHeight = 1;
// Minimum width for the match count label.
static const int kMatchCountMinWidth = 30;
@@ -397,7 +396,6 @@ void FindInPageView::Layout() {
// We extend the label bounds a bit to give the background highlighting a bit
// of breathing room (margins around the text).
sz.cx += kMatchCountExtraWidth;
- sz.cy += kMatchCountExtraHeight;
sz.cx = std::max(kMatchCountMinWidth, static_cast<int>(sz.cx));
match_count_text_->SetBounds(find_previous_button_->GetX() -
kWhiteSpaceAfterMatchCountLabel -