Permalink
Browse files

Align menus with popup button title

  • Loading branch information...
1 parent 800c462 commit bb14cca2e00a6627ffb1ed39cb223d1af82c055b @PGGB PGGB committed Mar 23, 2013
Showing with 5 additions and 5 deletions.
  1. +4 −4 Interface Graphics/Theme.plist
  2. +1 −1 OpenEmu/OEMenu.m
@@ -814,11 +814,11 @@
<key>Family</key>
<string>Lucida Grande</string>
<key>Size</key>
- <integer>10</integer>
+ <integer>11</integer>
<key>Traits</key>
<string>Bold</string>
<key>Weight</key>
- <integer>8</integer>
+ <integer>11</integer>
<key>Color</key>
<string>white</string>
<key>States</key>
@@ -850,11 +850,11 @@
<key>Family</key>
<string>Lucida Grande</string>
<key>Size</key>
- <integer>10</integer>
+ <integer>11</integer>
<key>Traits</key>
<string>Bold</string>
<key>Weight</key>
- <integer>8</integer>
+ <integer>11</integer>
<key>Color</key>
<string>black</string>
<key>States</key>
View
@@ -246,7 +246,7 @@ - (void)OE_updateFrameAttachedToPopupButton:(OEPopUpButton *)button alignSelecte
// TODO: Adjust origin based on the button's and menu item's shadows
frame.origin.x -= edgeInsets.left + OEMenuItemTickMarkWidth + (doesContainImages ? OEMenuItemImageWidth : 0.0);
- frame.origin.y -= NSMinY(selectedItemRectOnScreen)-NSMinY(actualScreenFrame) + 2.0 + (doesContainImages ? 1.0 : 0.0);
+ frame.origin.y -= NSMinY(selectedItemRectOnScreen)-NSMinY(actualScreenFrame) + 2.0 + (doesContainImages ? 1.0 : - 1.0);
frame.size.width = buttonFrame.size.width + edgeInsets.left + edgeInsets.right + OEMenuContentEdgeInsets.left + OEMenuContentEdgeInsets.right + OEMenuItemInsets.left + OEMenuItemInsets.right;
// Adjust the frame's dimensions not to be bigger than the screen

0 comments on commit bb14cca

Please sign in to comment.