Try to correct bug #30025. This corrects the initial display of a popup

button.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30964 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2010-07-14 22:21:59 +00:00
parent c2be707091
commit 2eb0a85405
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2010-07-15 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSMenuView.m (-setWindowFrameForAttachingToRect...):
Resize the menu view if needed. This should correct part of bug #30025.
2010-07-09 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSPopUpButtonCell.m (-setMenuView:): Override super class

View file

@ -1086,6 +1086,8 @@ static NSMapTable *viewInfo = 0;
// Make sure the menu entries are up to date
[self update];
if (_needsSizing)
[self sizeToFit];
/* FIXME: Perhaps all of this belongs into NSPopupButtonCell and
should be used to determine the proper screenRect to pass on into