From 15d4e4a6c04e9a0b8efb5f31b69160f73cc379ee Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Fri, 17 Jan 2025 06:50:17 +0800 Subject: [PATCH 4/5] RDocumentWinCtrl.m: fix compilation --- RDocumentWinCtrl.m | 11 ----------- 1 file changed, 11 deletions(-) diff --git RDocumentWinCtrl.m RDocumentWinCtrl.m index 45059c9..2d5c3fb 100644 --- RDocumentWinCtrl.m +++ RDocumentWinCtrl.m @@ -410,17 +410,6 @@ NSInteger _alphabeticSort(id string1, id string2, void *reverse) // Needed for showing tooltips of folded items [[self window] setAcceptsMouseMovedEvents:YES]; - - // FIXME: this is a hack for layout issues in Big Sur - // by forcing re-size we force layout to be updated - is there a better way? - NSRect clRect = [[self window] contentLayoutRect]; - clRect.size.width += 1; - [[self window] setContentSize:clRect.size]; - clRect.size.width -= 1; - [[self window] setContentSize:clRect.size]; - - // Make the text view fist responder so the user can start typing - [[self window] makeFirstResponder:textView]; SLog(@" - windowDidLoad is done"); -- 2.48.0