Skip to content

Commit 9d6c0c0

Browse files
committed
BluetoothMidiDevicePairingDialog (iOS): Avoid moving the pairing dialog offscreen when device orientation changes
1 parent 514718e commit 9d6c0c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/juce_audio_utils/native/juce_BluetoothMidiDevicePairingDialogue_ios.mm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,15 @@ void update()
9292
const int pw = getParentWidth();
9393
const int ph = getParentHeight();
9494

95+
setBounds (0, 0, getParentWidth(), getParentHeight());
96+
9597
nativeSelectorComponent.setBounds (Rectangle<int> (pw, ph)
9698
.withSizeKeepingCentre (jmin (400, pw),
9799
jmin (450, ph - 40)));
98100
}
99101
else
100102
{
103+
setBounds (bounds);
101104
nativeSelectorComponent.setBounds (bounds.withZeroOrigin());
102105
}
103106
}

0 commit comments

Comments
 (0)