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:
dmitry 2017-12-25 23:21:21 +00:00
parent 4cf2ff9452
commit 3d93781649

View File

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