mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 02:41:51 +02:00
cocoa: reverted a portion of #32363 patch, applied in r55824 #0af5c2d943. Overriding of NSScrollView.addSubview method, caused visual and user experience issues with TListBox (and presumably TMemo) scrollbar controls in macOS 10.12.1 (Sierra)
git-svn-id: trunk@56849 -
This commit is contained in:
parent
4cf2ff9452
commit
3d93781649
@ -472,7 +472,6 @@ type
|
||||
procedure lclClearCallback; override;
|
||||
procedure resetCursorRects; override;
|
||||
function lclIsHandle: Boolean; override;
|
||||
procedure addSubview(aView: NSView); override;
|
||||
end;
|
||||
|
||||
TStatusItemData = record
|
||||
@ -1592,20 +1591,6 @@ begin
|
||||
inherited resetCursorRects;
|
||||
end;
|
||||
|
||||
procedure TCocoaScrollView.addSubview(aView: NSView);
|
||||
var
|
||||
r: NSRect;
|
||||
begin
|
||||
if assigned(documentView) then
|
||||
begin
|
||||
r := NSUnionRect(aView.frame, NSRect(documentView.frame));
|
||||
documentView.setFrame(r);
|
||||
documentView.addSubview(aView);
|
||||
end
|
||||
else
|
||||
inherited addSubview(aView);
|
||||
end;
|
||||
|
||||
{ TCocoaScrollBar }
|
||||
|
||||
procedure TCocoaScrollBar.actionScrolling(sender: NSObject);
|
||||
|
Loading…
Reference in New Issue
Block a user