Browse Source

fix Y menu change user

Marino Faggiana 8 years ago
parent
commit
80faf96711
1 changed files with 7 additions and 1 deletions
  1. 7 1
      iOSClient/Main/CCMain.m

+ 7 - 1
iOSClient/Main/CCMain.m

@@ -3142,6 +3142,8 @@
     backgroundColor.G = 1;
     backgroundColor.B = 1;
     
+    NSInteger originY = 60;
+
     options.arrowSize = 9;
     options.marginXSpacing = 7;
     options.marginYSpacing = 10;
@@ -3154,8 +3156,12 @@
     options.textColor = textColor;
     options.menuBackgroundColor = backgroundColor;
     
+    CGRect rect = self.view.frame;
+    rect.origin.y = rect.origin.y + originY;
+    rect.size.height = rect.size.height - originY;
+    
     [CCMenu setTitleFont:[UIFont systemFontOfSize:12.0]];
-    [CCMenu showMenuInView:self.navigationController.view fromRect:self.view.frame menuItems:menuArray withOptions:options];
+    [CCMenu showMenuInView:self.navigationController.view fromRect:rect menuItems:menuArray withOptions:options];
 }
 
 - (void)changeDefaultAccount:(CCMenuItem *)sender