From f93058e072914e99bf677e360790c0866ad5ce5e Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 30 Sep 2023 02:28:45 +0200 Subject: AppDelegate: Set main window content view to scroll view Make the window's `contentView` the `_scroll_view` so that resizing the window causes the scroll view to resize with the window instead of having a fixed size. --- src/AppDelegate.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/AppDelegate.m b/src/AppDelegate.m index 8ae9b6d..7f86eda 100644 --- a/src/AppDelegate.m +++ b/src/AppDelegate.m @@ -40,7 +40,7 @@ [_scroll_view setHasVerticalScroller:YES]; [_scroll_view setDocumentView:_text_view]; - [[_window contentView] addSubview:_scroll_view]; + [_window setContentView:_scroll_view]; } - (void)applicationDidFinishLaunching:(NSNotification *)notification -- cgit v1.2.3