From 2411c16210ea7fbb9dadcf7d0cea0d4533092d40 Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 24 Jan 2005 10:45:23 +0000 Subject: [PATCH] Fix two window-resizing bugs introduced by the addition of the status bar. git-svn-id: svn://svn.tartarus.org/sgt/puzzles@5186 cda61777-01e9-0310-a592-d414129be87e --- osx.m | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/osx.m b/osx.m index beafc09..e0a35b4 100644 --- a/osx.m +++ b/osx.m @@ -17,6 +17,9 @@ * * - do we need any more options in the Window menu? * + * - can / should we be doing anything with the titles of the + * configuration boxes? + * * - not sure what I should be doing about default window * placement. Centring new windows is a bit feeble, but what's * better? Is there a standard way to tell the OS "here's the @@ -617,6 +620,13 @@ struct frontend { size.width = w; size.height = h; + if (status) { + NSRect frame = [status frame]; + size.height += frame.size.height; + frame.size.width = size.width; + [status setFrame:frame]; + } + NSDisableScreenUpdates(); [self setContentSize:size]; [self setupContentView]; -- 2.11.0