aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-01-24 10:45:23 +0000
committerSimon Tatham <anakin@pobox.com>2005-01-24 10:45:23 +0000
commitdf155680f240813e60c11d311cd647ff46280909 (patch)
tree13ea742e43d54b8a3ec053f4d571c320ab69dacb
parent6b89284c0ecbfa4620734a07111f012cd2d4b4d1 (diff)
downloadpuzzles-df155680f240813e60c11d311cd647ff46280909.zip
puzzles-df155680f240813e60c11d311cd647ff46280909.tar.gz
puzzles-df155680f240813e60c11d311cd647ff46280909.tar.bz2
puzzles-df155680f240813e60c11d311cd647ff46280909.tar.xz
Fix two window-resizing bugs introduced by the addition of the status bar.
[originally from svn r5186]
-rw-r--r--osx.m10
1 files changed, 10 insertions, 0 deletions
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];