Fix for issue #777, also fixed a declared type while I was at it

This commit is contained in:
Aparajita Fishman authored and Ross Boucher committed 2010-07-28 15:09:02 -07:00
1 parent 3070634aab
commit 8702b1421f
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -75,7 +75,7 @@ var _CPMenuBarVisible = NO,
id _delegate;
CPMenuItem _highlightedIndex;
int _highlightedIndex;
_CPMenuWindow _menuWindow;
}
+3
View File
@@ -662,6 +662,9 @@ CPPopUpButtonStatePullsDown = CPThemeState("pulls-down");
location = CGPointMake(CGRectGetMinX(contentRect) - standardLeftMargin, 0.0);
minimumWidth += standardLeftMargin;
// To ensure the selected item is highlighted correctly, unset the highlighted item
[menu _highlightItemAtIndex:CPNotFound];
}
[menu setMinimumWidth:minimumWidth];