mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-16 02:00:30 +01:00
cocoa: eliminating horizontal spacing between columns to match winapi. bug #36618
git-svn-id: trunk@62589 -
This commit is contained in:
parent
bda4078a93
commit
edd505d679
@ -994,6 +994,7 @@ var
|
||||
lTableLV: TCocoaTableListView;
|
||||
ns: NSRect;
|
||||
lclcb: TLCLListViewCallback;
|
||||
sz: NSSize;
|
||||
begin
|
||||
{$IFDEF COCOA_DEBUG_LISTVIEW}
|
||||
WriteLn('[TCocoaWSCustomListView.CreateHandle] AWinControl='+IntToStr(PtrInt(AWinControl)));
|
||||
@ -1031,6 +1032,10 @@ begin
|
||||
ScrollViewSetBorderStyle(lCocoaLV, TCustomListView(AWinControl).BorderStyle);
|
||||
UpdateFocusRing(lTableLV, TCustomListView(AWinControl).BorderStyle);
|
||||
|
||||
sz := lTableLV.intercellSpacing;
|
||||
// Windows compatibility. on Windows there's no extra space between columns
|
||||
sz.width := 0;
|
||||
lTableLV.setIntercellSpacing(sz);;
|
||||
{$IFDEF COCOA_DEBUG_LISTVIEW}
|
||||
WriteLn(Format('[TCocoaWSCustomListView.CreateHandle] headerView=%d', [PtrInt(lTableLV.headerView)]));
|
||||
{$ENDIF}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user