mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-12 02:18:44 +02:00
Cocoa/ListView: in vsReport, fix the issue in ItemDisplayRect()
This commit is contained in:
parent
16f03ef620
commit
74415b6056
@ -475,13 +475,23 @@ end;
|
||||
function TCocoaTableListView.lclGetLabelRect(ARow, ACol: Integer;
|
||||
const BoundsRect: TRect): TRect;
|
||||
begin
|
||||
Result := BoundsRect;
|
||||
Result:= BoundsRect;
|
||||
Result.Top:= Result.Top - 2;
|
||||
Result.Height:= Result.Height + 4;
|
||||
if self.isImagesInCell then begin
|
||||
Result.Left:= Result.Left + BoundsRect.Height;
|
||||
end;
|
||||
end;
|
||||
|
||||
function TCocoaTableListView.lclGetIconRect(ARow, ACol: Integer;
|
||||
const BoundsRect: TRect): TRect;
|
||||
begin
|
||||
Result := BoundsRect;
|
||||
if self.isImagesInCell then begin
|
||||
Result:= BoundsRect;
|
||||
Result.Width:= Result.Height;
|
||||
end else begin
|
||||
Result:= TRect.Empty;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TCocoaTableListView.lclInsDelRow(Arow: Integer; inserted: Boolean);
|
||||
|
Loading…
Reference in New Issue
Block a user