diff --git a/src/posix/cocoa/st_console.mm b/src/posix/cocoa/st_console.mm index 09d0c9421..09c15e395 100644 --- a/src/posix/cocoa/st_console.mm +++ b/src/posix/cocoa/st_console.mm @@ -94,7 +94,7 @@ FConsoleWindow::FConsoleWindow() [textContainer setContainerSize:NSMakeSize(initialWidth, FLT_MAX)]; [textContainer setWidthTracksTextView:YES]; - [m_scrollView initWithFrame:NSMakeRect(0.0f, 0.0f, initialWidth, initialHeight)]; + [m_scrollView initWithFrame:initialRect]; [m_scrollView setBorderType:NSNoBorder]; [m_scrollView setHasVerticalScroller:YES]; [m_scrollView setHasHorizontalScroller:NO];