Skip to content

Commit 409e6d8

Browse files
Minor usability improvement: Ensure that the item we searched for is scrolled towards, in the list view. Related to issue #101
1 parent 0674c90 commit 409e6d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Designer/FCommands.pas

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ procedure TFrameCommands.ActionSearchCommandExecute(Sender: TObject);
253253
begin
254254
if lItem.Data = lCommandSearchForm.ListViewCommands.Selected.Data then
255255
Self.ListViewCommands.Selected := lItem;
256+
Self.ListViewCommands.Selected.MakeVisible(False);
256257
end; //for lItem
257258
end; //if ShowModal
258259
finally

0 commit comments

Comments
 (0)