mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 03:48:27 +02:00
LCL, TreeView: fix GetNextVisible, GetPrevVisible. Issue #21264
- Visible means "property Visible" (and all parents Visible and Expanded) - It does not mean: within the scrolled-in area git-svn-id: trunk@36577 -
This commit is contained in:
parent
51262ce4b0
commit
01f0b60bfc
@ -889,7 +889,7 @@ begin
|
||||
if Result<>nil then
|
||||
Result:=Result.GetNextVisibleSibling;
|
||||
end;
|
||||
if (Result<>nil) and ((not Result.IsVisible) or (not Result.FVisible)) then
|
||||
if (Result<>nil) and ( (not Result.FVisible) or (not AreParentsExpandedAndVisible) ) then
|
||||
Result:=nil;
|
||||
end;
|
||||
|
||||
@ -917,7 +917,7 @@ begin
|
||||
end
|
||||
else
|
||||
Result := Parent;
|
||||
if (Result<>nil) and (TreeView<>nil) and (not TreeView.IsNodeVisible(Result)) then
|
||||
if (Result<>nil) and ( (not Result.FVisible) or (not AreParentsExpandedAndVisible) ) then
|
||||
Result:=nil;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user