From 0d0c4e4c5d4fa187d2258df36c0f5b4572372d44 Mon Sep 17 00:00:00 2001 From: blikblum Date: Sat, 18 Jul 2009 18:40:36 +0000 Subject: [PATCH] * Fix GetHitTestInfoAt when the header is visible git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@917 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/virtualtreeview-new/VirtualTrees.pas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/virtualtreeview-new/VirtualTrees.pas b/components/virtualtreeview-new/VirtualTrees.pas index a874cc814..529fd54b4 100644 --- a/components/virtualtreeview-new/VirtualTrees.pas +++ b/components/virtualtreeview-new/VirtualTrees.pas @@ -27023,10 +27023,11 @@ begin if X > Max(FRangeX, ClientWidth) then Include(HitInfo.HitPositions, hiToRight); + //lclheader if Y < 0 then Include(HitInfo.HitPositions, hiAbove) else - if Y > Max(FRangeY, ClientHeight) then + if Y > Max(FRangeY, inherited GetClientRect.Bottom) then Include(HitInfo.HitPositions, hiBelow); // Convert position into absolute coordinate if necessary.