kryslt / KControls

Free components for Delphi and Lazarus, this is the main repository maintained by the original author.
BSD 3-Clause Clear License
58 stars 32 forks source link

Wrong value returned from GetVisibleRowCount #20

Closed AzzaAzza69 closed 3 years ago

AzzaAzza69 commented 4 years ago

as defined below, it returns the ROW NUMBER and not the number of rows shown in the grid:

function TKCustomGrid.GetVisibleRowCount: Integer;
begin
  Result := LastVisibleRow;
end;

It should read:

Result := LastVisibleRow - TopRow + 1

also same applies to GetVisibleColCount

kryslt commented 4 years ago

Will be fixed.