From cd5a9ae86b37b0edc30c61f9c511d2a2f2956007 Mon Sep 17 00:00:00 2001 From: Michael Silva Date: Sun, 27 Apr 2003 20:37:29 +0000 Subject: [PATCH] Small fix to NSPopUpButtonCell. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16564 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 7 +++++++ Source/NSPopUpButtonCell.m | 3 +++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2da21e34f..385e8faad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-03-27 Michael Hanni + + * Source/NSPopUpButtonCell.m (drawWithFrame:inView:): added a call + to the NSMenuItemCell's calcSize method to place the image + correctly when we are making a temp item. Fixes regression + prompted by changes on 2003-04-17. + 2003-03-27 Fred Kiefer * Source/GSFontInfo.m diff --git a/Source/NSPopUpButtonCell.m b/Source/NSPopUpButtonCell.m index 6a328d256..af08c24d4 100644 --- a/Source/NSPopUpButtonCell.m +++ b/Source/NSPopUpButtonCell.m @@ -536,6 +536,9 @@ static NSImage *_pbc_image[2]; */ [aCell setMenuView: [_menu menuRepresentation]]; + /* We need to calc our size to get images placed correctly */ + [aCell calcSize]; + RELEASE(anItem); }