Skip to content

Commit

Permalink
adding support for hidden menubar on main screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonard Truong authored and Leonard Truong committed Oct 19, 2013
1 parent bfd921e commit b101dd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Amethyst/AMTallLayout.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ - (void)reflowScreen:(NSScreen *)screen withWindows:(NSArray *)windows {
NSInteger secondaryPaneCount = windows.count - mainPaneCount;
BOOL hasSecondaryPane = (secondaryPaneCount > 0);

CGRect screenFrame = screen.frameWithoutDockOrMenu;
//CGRect screenFrame = screen.frameWithoutDockOrMenu;
CGRect screenFrame = screen.frame;

CGFloat mainPaneWindowHeight = round(screenFrame.size.height / mainPaneCount);
CGFloat secondaryPaneWindowHeight = (hasSecondaryPane ? round(screenFrame.size.height / secondaryPaneCount) : 0.0);
Expand Down

0 comments on commit b101dd7

Please sign in to comment.