mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 05:40:48 +00:00
Fix for issue with resize when using in-window menus.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37698 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e941843120
commit
a3f2d12641
2 changed files with 18 additions and 1 deletions
|
@ -2174,7 +2174,18 @@ titleWithRepresentedFilename(NSString *representedFilename)
|
|||
}
|
||||
if (_maximumSize.height > 0 && frameRect.size.height > _maximumSize.height)
|
||||
{
|
||||
frameRect.size.height = _maximumSize.height;
|
||||
NSInterfaceStyle style =
|
||||
NSInterfaceStyleForKey(@"NSMenuInterfaceStyle", nil);
|
||||
|
||||
if (style != NSWindows95InterfaceStyle)
|
||||
{
|
||||
frameRect.size.height = _maximumSize.height;
|
||||
}
|
||||
else
|
||||
{
|
||||
float menuHeight = [[GSTheme theme] menuHeightForWindow:self];
|
||||
frameRect.size.height = _maximumSize.height + menuHeight;
|
||||
}
|
||||
}
|
||||
if (frameRect.size.width < _minimumSize.width)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue