Description:
1. Replace the code in app.js with the code below:
var win = Titanium.UI.createWindow();
win.orientationModes = [
Titanium.UI.PORTRAIT,
Titanium.UI.UPSIDE_PORTRAIT,
Titanium.UI.LANDSCAPE_LEFT,
Titanium.UI.LANDSCAPE_RIGHT,
];
var b1 = Titanium.UI.createButton({
title:'Show Gallery',
width:200,
height:40,
top:40
});
b1.addEventListener('click', function()
{
Titanium.Media.openPhotoGallery({
success:function(event)
{
Ti.API.debug('Success!');
},
cancel:function()
{
},
allowEditing:true
});
});
win.add(b1);
win.open();
2. Build & run the app on Ipad/Ipad mini (I had I pad mini).
3. Tap the show Gallery button.
4. With the popover visible change the device orientation to landscape or any other orientation.
Actual Result:
1. The orientation does not change.
2. Close the popover & change the orientation of the device, you will see that the orientation now changes.
NOTE: The orientation changes as expected for ipad(mini in my case) devices with iOS 7.0.3 & iOS 6.1.3
Expected Result:
1. The orientation should change when the popover is visible
This might be fixed. Need to confirm.
Fixed with changed for TIMOB-17648