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

Unified Diff: chrome/browser/ui/panels/panel_overflow_strip.cc

Issue 8802021: Fix a couple panel overflow related bugs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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/panels/panel_overflow_strip.cc
diff --git a/chrome/browser/ui/panels/panel_overflow_strip.cc b/chrome/browser/ui/panels/panel_overflow_strip.cc
index ed7c8ed3144ac42bcc680e2d83dd6ce45cb13a56..b26ae8e412083b88356d055e026a580e772d7699 100644
--- a/chrome/browser/ui/panels/panel_overflow_strip.cc
+++ b/chrome/browser/ui/panels/panel_overflow_strip.cc
@@ -157,8 +157,7 @@ bool PanelOverflowStrip::ShouldShowOverflowTitles(
int width = are_overflow_titles_shown_ ? kOverflowAreaHoverWidth
: display_area_.width();
- return display_area_.x() <= mouse_position.x() &&
- mouse_position.x() <= display_area_.x() + width &&
+ return mouse_position.x() <= display_area_.x() + width &&
panels_.back()->GetBounds().y() <= mouse_position.y() &&
mouse_position.y() <= display_area_.bottom();
}

Powered by Google App Engine
This is Rietveld 408576698