Bläddra i källkod

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 år sedan
förälder
incheckning
cf753419eb
1 ändrade filer med 1 tillägg och 1 borttagningar
  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];