mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-22 16:32:13 -07:00
Fix two window-resizing bugs introduced by the addition of the status bar.
[originally from svn r5186]
This commit is contained in:
10
osx.m
10
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];
|
||||
|
Reference in New Issue
Block a user