mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:30:38 +00:00
* 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:
parent
0895fb4b76
commit
03616e71ee
3 changed files with 24 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue