Skip to content

Commit

Permalink
Few fixes for previous menu commits
Browse files Browse the repository at this point in the history
Signed-off-by: 280north <admin+280north@280north.com>
  • Loading branch information
Nicholas Small authored and 280north committed Jan 4, 2009
1 parent 899db8f commit 3235cfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
9 changes: 1 addition & 8 deletions AppKit/CPMenu.j
Expand Up @@ -181,10 +181,7 @@ var _CPMenuBarVisible = NO,

+ (float)menuBarHeight
{
if ([self menuBarVisible])
return MENUBAR_HEIGHT;

return 0.0;
return MENUBAR_HEIGHT;
}

// Creating a CPMenu Object
Expand Down Expand Up @@ -1007,10 +1004,6 @@ var STICKY_TIME_INTERVAL = 500,

[self setFrameSize:CGSizeMake(LEFT_MARGIN + menuViewSize.width + RIGHT_MARGIN, TOP_MARGIN + menuViewSize.height + BOTTOM_MARGIN)];

for(var i = 0; i < [aMenu numberOfItems]; i++)
if([[aMenu itemAtIndex:i] isSeparatorItem])
[[[aMenu itemAtIndex:i] view] setFrameSize:CPSizeMake(menuViewSize.width, 20.0)];

[_menuView scrollPoint:CGPointMake(0.0, 0.0)];
[_menuClipView setFrame:CGRectMake(LEFT_MARGIN, TOP_MARGIN, menuViewSize.width, menuViewSize.height)];
}
Expand Down
1 change: 1 addition & 0 deletions AppKit/CPMenuItem.j
Expand Up @@ -734,6 +734,7 @@ CPControlKeyMask
var view = [[CPView alloc] initWithFrame:CGRectMake(0.0, 0.0, 0.0, 20.0)],
line = [[CPView alloc] initWithFrame:CGRectMake(0.0, 8.0, 1000.0, 1.3)];
[line setBackgroundColor:[CPColor lightGrayColor]];
[view setAutoresizingMask:CPViewWidthSizable];
[view addSubview:line];

[self setView:view];
Expand Down

0 comments on commit 3235cfd

Please sign in to comment.