From f3630c00aef15a90aaf2492545e9d9355f8b367a Mon Sep 17 00:00:00 2001 From: Sergii Stoian Date: Tue, 25 Mar 2003 20:00:13 +0000 Subject: [PATCH] NSMenuView.m mouse tracking code changes git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16265 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 67b4b56eb..05a46c74b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,16 +1,22 @@ 2003-03-25 Serg Stoyan * Source/NSMenuView.m - (setWindowFrameForAttachingToRect:): call sizeToFit only if cell's - frame changed (patch by Michael Hanni). Compute frame if number of + (setWindowFrameForAttachingToRect:):Compute frame if number of items > 0 instead of > 1 (fixes size problem when there is 1 item in popup button's menu). - (sizeToFit): optimized and fixed offset calculation. + (sizeToFit): optimized and fixed offsets calculation. * Source/NSMenuItemCell.m (imageRectForBounds:): removed pad adding between state image and - title image and text, because [NSMenuView sizeToFit] do this. + title image and text, because [NSMenuView sizeToFit] does this. (titleRectForBounds:): ditto. + +2003-03-25 Michael Hanni + + * Source/NSMenuView.m (-trackWithEvent:): reset highlighted items in a + submenu that we leave for a supermenu. + (setWindowFrameForAttachingToRect:): call sizeToFit only if cell's + frame changed. 2003-03-24 Adam Fedor