From 9d6c0c0f50cfd57d95a283e24352df28556e3484 Mon Sep 17 00:00:00 2001 From: reuk Date: Mon, 3 Nov 2025 20:55:05 +0000 Subject: [PATCH] BluetoothMidiDevicePairingDialog (iOS): Avoid moving the pairing dialog offscreen when device orientation changes --- .../native/juce_BluetoothMidiDevicePairingDialogue_ios.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/juce_audio_utils/native/juce_BluetoothMidiDevicePairingDialogue_ios.mm b/modules/juce_audio_utils/native/juce_BluetoothMidiDevicePairingDialogue_ios.mm index 0a003214f7..e32ada9d91 100644 --- a/modules/juce_audio_utils/native/juce_BluetoothMidiDevicePairingDialogue_ios.mm +++ b/modules/juce_audio_utils/native/juce_BluetoothMidiDevicePairingDialogue_ios.mm @@ -92,12 +92,15 @@ private: const int pw = getParentWidth(); const int ph = getParentHeight(); + setBounds (0, 0, getParentWidth(), getParentHeight()); + nativeSelectorComponent.setBounds (Rectangle (pw, ph) .withSizeKeepingCentre (jmin (400, pw), jmin (450, ph - 40))); } else { + setBounds (bounds); nativeSelectorComponent.setBounds (bounds.withZeroOrigin()); } }