mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-21 03:39:18 +02:00
Cocoa: Fix the issue of scroll bar not working in Form
since macOS 10.7, NSScrollerStyleOverlay is used by default, and the scroll bar needs to be set before the DocumentView size changes.
This commit is contained in:
parent
ef22ee4542
commit
54d7f414ce
@ -732,6 +732,8 @@ begin
|
||||
cnt.wincallback := cb;
|
||||
cnt.isCustomRange := true;
|
||||
|
||||
cnt.setHasHorizontalScroller(True);
|
||||
cnt.setHasVerticalScroller(True);
|
||||
cnt.setVerticalScrollElasticity(NSScrollElasticityNone);
|
||||
cnt.setHorizontalScrollElasticity(NSScrollElasticityNone);
|
||||
cnt.setDocumentView(doc);
|
||||
|
Loading…
Reference in New Issue
Block a user