You've already forked lazarus-ccr
* Fix GetNodeAt when header is visible
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@405 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -25161,14 +25161,18 @@ begin
|
||||
|
||||
AbsolutePos := Y;
|
||||
if Relative then
|
||||
begin
|
||||
Inc(AbsolutePos, -FOffsetY);
|
||||
if hoVisible in FHeader.FOptions then
|
||||
Inc(AbsolutePos, FHeader.Height);
|
||||
end;
|
||||
|
||||
// CurrentPos tracks a running term of the current position to test for.
|
||||
// It corresponds always to the top position of the currently considered node.
|
||||
|
||||
//lclheader: adjust position if Header is visible
|
||||
if hoVisible in FHeader.FOptions then
|
||||
CurrentPos:=FHeader.Height
|
||||
CurrentPos := FHeader.Height
|
||||
else
|
||||
CurrentPos := 0;
|
||||
|
||||
|
Reference in New Issue
Block a user