| Index: ui/views/controls/tree/tree_view.cc
|
| diff --git a/ui/views/controls/tree/tree_view.cc b/ui/views/controls/tree/tree_view.cc
|
| index d5a3911026421d6414d90cade7a79cf1ec341330..c18f74d083cb0cf3cb1e60c4dde1b4d052c3d89c 100644
|
| --- a/ui/views/controls/tree/tree_view.cc
|
| +++ b/ui/views/controls/tree/tree_view.cc
|
| @@ -642,7 +642,7 @@ bool TreeView::OnClickOrTap(const ui::LocatedEvent& event) {
|
| InternalNode* node = GetNodeByRow(row, &depth);
|
| if (node) {
|
| gfx::Rect bounds(GetBoundsForNodeImpl(node, row, depth));
|
| - if (bounds.Contains(event.location())) {
|
| + if (bounds.Contains(gfx::ToFlooredPoint(event.location()))) {
|
| int relative_x = event.x() - bounds.x();
|
| if (base::i18n::IsRTL())
|
| relative_x = bounds.width() - relative_x;
|
|
|