cocoa: implementing .MakeVisible() for TListView items

This commit is contained in:
Dmitry Boyarintsev 2021-09-19 17:56:10 -04:00 committed by Maxim Ganetsky
parent 10e94128a0
commit 7fb476c5cd

View File

@ -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;