mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 00:41:31 +00:00
Constrain window to screen on initialisation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10598 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
56ca810cfa
commit
328110a006
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2001-07-27 Georg Fleischmann
|
||||
|
||||
* gui/Source/NSWindow.m
|
||||
[NSWindow initWithContentRect:styleMask:backing:defer:screen:]:
|
||||
constrain frame rect to screen
|
||||
|
||||
2001-07-24 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/NSSpellChecker.m cleaned up some of the NSLog
|
||||
|
|
|
@ -677,6 +677,7 @@ static NSMapTable* windowmaps = NULL;
|
|||
_styleMask = aStyle;
|
||||
|
||||
_frame = [NSWindow frameRectForContentRect: contentRect styleMask: aStyle];
|
||||
_frame = [self constrainFrameRect: _frame toScreen: [self screen]];
|
||||
_minimumSize = NSMakeSize(_frame.size.width - contentRect.size.width + 1,
|
||||
_frame.size.height - contentRect.size.height + 1);
|
||||
_maximumSize = NSMakeSize (10e4, 10e4);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue