mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-28 08:09:16 +02:00
cocoa: implementing .MakeVisible() for TListView items
This commit is contained in:
parent
10e94128a0
commit
7fb476c5cd
@ -1462,8 +1462,14 @@ end;
|
||||
|
||||
class procedure TCocoaWSCustomListView.ItemShow(const ALV: TCustomListView;
|
||||
const AIndex: Integer; const AItem: TListItem; const PartialOK: Boolean);
|
||||
var
|
||||
lCocoaLV: TCocoaListView;
|
||||
lTableLV: TCocoaTableListView;
|
||||
begin
|
||||
inherited ItemShow(ALV, AIndex, AItem, PartialOK);
|
||||
//inherited ItemShow(ALV, AIndex, AItem, PartialOK);
|
||||
if not CheckParams(lCocoaLV, lTableLV, ALV) then
|
||||
Exit;
|
||||
lTableLV.scrollRowToVisible(AItem.Index);
|
||||
end;
|
||||
|
||||
class function TCocoaWSCustomListView.GetFocused(const ALV: TCustomListView): Integer;
|
||||
|
Loading…
Reference in New Issue
Block a user