project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m
changeset 6864 6fdd23cdeaeb
parent 6832 fae8fd118da9
child 6908 896ed2afcfb8
--- a/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m	Sun Apr 08 18:46:09 2012 +0200
+++ b/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m	Sun Apr 08 19:06:25 2012 +0200
@@ -98,11 +98,12 @@
 -(void) viewDidLoad {
     self.sectionsHidden = NO;
 
-    NSInteger verticalOffset = IS_IPAD() ? 45 : 0;
+    NSInteger topOffset = IS_IPAD() ? 45 : 0;
+    NSInteger bottomOffset = IS_IPAD() ? 3 : 0;
     UITableView *aTableView = [[UITableView alloc] initWithFrame:CGRectMake(0,
-                                                                            verticalOffset,
+                                                                            topOffset,
                                                                             self.view.frame.size.width,
-                                                                            self.view.frame.size.height - verticalOffset)
+                                                                            self.view.frame.size.height - topOffset - bottomOffset)
                                                            style:UITableViewStyleGrouped];
     aTableView.delegate = self;
     aTableView.dataSource = self;