From f5f2eb11b83240b9e22e2ec2a2ebedfc25f932ad Mon Sep 17 00:00:00 2001 From: Stephen McConnel Date: Wed, 16 Jul 2014 14:29:57 -0500 Subject: [PATCH] Fix error in tooltip display for ListView.ShowGroups This fixes Xamarin bug 21346 " SWF.ListView does not handle item tooltips when Groups are used". --- mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs index c1b7d791f8d..f7075e8ef8f 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs @@ -3833,8 +3833,7 @@ namespace System.Windows.Forms { Size item_size = ItemSize; for (int i = 0; i < items.Count; i++) { - Point item_location = GetItemLocation (i); - Rectangle item_rect = new Rectangle (item_location, item_size); + Rectangle item_rect = items [i].Bounds; if (item_rect.Contains (x, y)) return items [i]; } -- 2.11.4.GIT