* Source/NSMenu.m: Beginning of support for windows style menus on the

top of the window.
	* Source/NSWindow.m: Added code in the method -setFrameFromString: to 
	make certain the window doesn't go out of bounds if the screen size
	changes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26751 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
gcasa 2008-07-08 20:17:44 +00:00
parent 0895fb4b76
commit 03616e71ee
3 changed files with 24 additions and 5 deletions

View file

@ -4483,6 +4483,14 @@ current key view.<br />
{
fRect.origin.y = nRect.origin.y + (fRect.origin.y - nRect.origin.y)
* (nRect.size.height / sRect.size.height);
/*
* If height of the window goes above the screen height, then adjust the window down.
*/
if ((fRect.size.height + fRect.origin.y) > nRect.size.height)
{
fRect.origin.y = fRect.origin.y - ((fRect.size.height + fRect.origin.y) - nRect.size.height);
}
}
/* If we aren't resizable (ie. if we don't have a resize bar), make sure