Browse Source

iOS: Fixed a screen rotation bug on iOS 13

tags/2021-05-28
ed 5 years ago
parent
commit
8d75cc8064
3 changed files with 0 additions and 7 deletions
  1. +0
    -3
      modules/juce_gui_basics/native/juce_ios_ContentSharer.cpp
  2. +0
    -3
      modules/juce_gui_basics/native/juce_ios_FileChooser.mm
  3. +0
    -1
      modules/juce_gui_basics/native/juce_ios_UIViewComponentPeer.mm

+ 0
- 3
modules/juce_gui_basics/native/juce_ios_ContentSharer.cpp View File

@@ -164,9 +164,6 @@ private:
if (auto* parentController = peer->controller)
[parentController showViewController: controller.get() sender: parentController];
if (peer->view.window != nil)
peer->view.window.autoresizesSubviews = YES;
}
}


+ 0
- 3
modules/juce_gui_basics/native/juce_ios_FileChooser.mm View File

@@ -144,9 +144,6 @@ private:
if (auto* parentController = peer->controller)
[parentController showViewController: controller.get() sender: parentController];
if (peer->view.window != nil)
peer->view.window.autoresizesSubviews = YES;
}
}


+ 0
- 1
modules/juce_gui_basics/native/juce_ios_UIViewComponentPeer.mm View File

@@ -600,7 +600,6 @@ UIViewComponentPeer::UIViewComponentPeer (Component& comp, const int windowStyle
window.rootViewController = controller;
window.hidden = true;
window.autoresizesSubviews = NO;
window.transform = Orientations::getCGTransformFor (Desktop::getInstance().getCurrentOrientation());
window.opaque = component.isOpaque();
window.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent: 0];


Loading…
Cancel
Save