Просмотр исходного кода

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
Родитель
Сommit
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];