Browse Source

Fix the autoresizing mask on the explorer toolbar.

It will now stay on screen after rotation no matter where it is prior to rotation.
Ryan Olson 12 years ago
parent
commit
cf753419eb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Classes/Explorer Toolbar/FLEXExplorerViewController.m

+ 1 - 1
Classes/Explorer Toolbar/FLEXExplorerViewController.m

@@ -91,7 +91,7 @@ typedef NS_ENUM(NSUInteger, FLEXExplorerMode) {
     // Start the toolbar off below any bars that may be at the top of the view.
     CGFloat toolbarOriginY = 100.0;
     self.explorerToolbar.frame = CGRectMake(0.0, toolbarOriginY, toolbarSize.width, toolbarSize.height);
-    self.explorerToolbar.autoresizingMask = UIViewAutoresizingFlexibleWidth;
+    self.explorerToolbar.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleTopMargin;
     [self.view addSubview:self.explorerToolbar];
     [self setupToolbarActions];
     [self setupToolbarGestures];