Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen McConnel <stephen_mcconnel@sil.org>2014-07-16 23:29:57 +0400
committerAlexis Christoforides <alexis@thenull.net>2014-07-17 01:27:21 +0400
commitf5f2eb11b83240b9e22e2ec2a2ebedfc25f932ad (patch)
treea5490157f2cd19021cd501da1408984349f3887e /mcs/class/Managed.Windows.Forms/System.Windows.Forms
parent66416d2655bda555f52e7fb73f97d3984cf2fbde (diff)
Fix error in tooltip display for ListView.ShowGroups
This fixes Xamarin bug 21346 " SWF.ListView does not handle item tooltips when Groups are used".
Diffstat (limited to 'mcs/class/Managed.Windows.Forms/System.Windows.Forms')
-rw-r--r--mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs3
1 files changed, 1 insertions, 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];
}