Browse Source

Fix for rotation on some iOS device types.

tags/2021-05-28
jules 11 years ago
parent
commit
b33677dbb0
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      modules/juce_gui_basics/native/juce_ios_UIViewComponentPeer.mm

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

@@ -334,6 +334,10 @@ static void sendScreenBoundsUpdate (JuceUIViewController* c)
{ {
[super viewWillTransitionToSize: size withTransitionCoordinator: coordinator]; [super viewWillTransitionToSize: size withTransitionCoordinator: coordinator];
sendScreenBoundsUpdate (self); sendScreenBoundsUpdate (self);
// On some devices the screen-size isn't yet updated at this point, so also trigger another
// async update to double-check..
MessageManager::callAsync ([=]() { sendScreenBoundsUpdate (self); });
} }
- (void) viewDidLoad - (void) viewDidLoad


Loading…
Cancel
Save