force origin to (0,0) as suggested by Fred for a Subview

This commit is contained in:
Riccardo Mottola 2021-06-17 23:16:20 +02:00
parent 0b1771198f
commit 0ded9f7ea2

View file

@ -163,7 +163,7 @@ static NSHelpPanel *_sharedPanel = nil;
hasHorizontalScroller: YES
hasVerticalScroller: YES
borderType: NSNoBorder];
v = [[NSTextView alloc] initWithFrame: NSMakeRect(contentRect.origin.x, contentRect.origin.y, size.width, size.height)];
v = [[NSTextView alloc] initWithFrame: NSMakeRect(0, 0, size.width, size.height)];
[v setHorizontallyResizable: YES];
[v setVerticallyResizable: YES];
[v setEditable: NO];