(-setFrameFromString:): Don't change the size of the window if it isn't resizable.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19905 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2004-08-23 15:34:34 +00:00
parent 73fd0482a8
commit da55fbe8a0
2 changed files with 10 additions and 0 deletions

View file

@ -3775,6 +3775,11 @@ resetCursorRectsForView(NSView *theView)
* (nRect.size.height / sRect.size.height);
}
/* If we aren't resizable (ie. if we don't have a resize bar), make sure
we don't change the size. */
if (!(_styleMask & NSResizableWindowMask))
fRect.size = _frame.size;
/*
* Set frame.
*/