mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 00:01:43 +02:00
cocoa: update the default resizing rules for Windows document view. #35789
git-svn-id: trunk@61514 -
This commit is contained in:
parent
2036d96cd5
commit
c49189ab7d
@ -293,7 +293,7 @@ begin
|
||||
doc := TCocoaWindowContentDocument.alloc.initWithFrame(R);
|
||||
doc.setHidden(false);
|
||||
doc.setAutoresizesSubviews(true);
|
||||
doc.setAutoresizingMask(NSViewMaxXMargin or NSViewMinYMargin);
|
||||
doc.setAutoresizingMask(NSViewMaxXMargin or NSViewMinYMargin or NSViewHeightSizable or NSViewWidthSizable);
|
||||
cb := TLCLWindowCallback.Create(doc, AWinControl, cnt);
|
||||
doc.callback := cb;
|
||||
doc.wincallback := cb;
|
||||
@ -726,7 +726,7 @@ begin
|
||||
doc.setHidden(false);
|
||||
|
||||
doc.setAutoresizesSubviews(true);
|
||||
doc.setAutoresizingMask(NSViewMaxXMargin or NSViewMinYMargin);
|
||||
doc.setAutoresizingMask(NSViewMaxXMargin or NSViewMinYMargin or NSViewHeightSizable or NSViewWidthSizable);
|
||||
|
||||
if (AParams.Style and WS_CHILD) = 0 then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user