You've already forked lazarus-ccr
virtualtreeview-new: Fix "Cannot click tree items if tree is scrolled down", issue #26590, patch by Tsvetoslav
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3712 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -27074,6 +27074,9 @@ begin
|
|||||||
begin
|
begin
|
||||||
if X >= Header.Columns.GetVisibleFixedWidth then
|
if X >= Header.Columns.GetVisibleFixedWidth then
|
||||||
Inc(X, FEffectiveOffsetX);
|
Inc(X, FEffectiveOffsetX);
|
||||||
|
//lclheader
|
||||||
|
if hoVisible in FHeader.Options then
|
||||||
|
Dec(Y, FHeader.Height);
|
||||||
Inc(Y, -FOffsetY);
|
Inc(Y, -FOffsetY);
|
||||||
end;
|
end;
|
||||||
HitInfo.HitPoint.X := X;
|
HitInfo.HitPoint.X := X;
|
||||||
@ -27082,17 +27085,6 @@ begin
|
|||||||
// If the point is in the tree area then check the nodes.
|
// If the point is in the tree area then check the nodes.
|
||||||
if HitInfo.HitPositions = [] then
|
if HitInfo.HitPositions = [] then
|
||||||
begin
|
begin
|
||||||
// Convert position into absolute coordinate if necessary.
|
|
||||||
if Relative then
|
|
||||||
begin
|
|
||||||
if X > Header.Columns.GetVisibleFixedWidth then
|
|
||||||
Inc(X, FEffectiveOffsetX);
|
|
||||||
//lclheader
|
|
||||||
if hoVisible in FHeader.Options then
|
|
||||||
Dec(Y, FHeader.Height);
|
|
||||||
Dec(Y, FOffsetY);
|
|
||||||
end;
|
|
||||||
|
|
||||||
HitInfo.HitNode := InternalGetNodeAt(X, Y, False, NodeTop);
|
HitInfo.HitNode := InternalGetNodeAt(X, Y, False, NodeTop);
|
||||||
if HitInfo.HitNode = nil then
|
if HitInfo.HitNode = nil then
|
||||||
Include(HitInfo.HitPositions, hiNowhere)
|
Include(HitInfo.HitPositions, hiNowhere)
|
||||||
|
Reference in New Issue
Block a user