Преглед изворни кода

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 година
родитељ
комит
cf753419eb
1 измењених фајлова са 1 додато и 1 уклоњено
  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];