mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 22:27:38 +00:00
(-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:
parent
73fd0482a8
commit
da55fbe8a0
2 changed files with 10 additions and 0 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue