Explorar o código

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 %!s(int64=12) %!d(string=hai) anos
pai
achega
cf753419eb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.
     // Start the toolbar off below any bars that may be at the top of the view.
     CGFloat toolbarOriginY = 100.0;
     CGFloat toolbarOriginY = 100.0;
     self.explorerToolbar.frame = CGRectMake(0.0, toolbarOriginY, toolbarSize.width, toolbarSize.height);
     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.view addSubview:self.explorerToolbar];
     [self setupToolbarActions];
     [self setupToolbarActions];
     [self setupToolbarGestures];
     [self setupToolbarGestures];