Project: titanium
Issue TIMOB-17653: iOS: Option Dialog shown truncated on orientation change when project resources don't have Default-568h@2x.png file
For a project that does not have the file Default-568h@2x.png, required for 4" screen iPhone, in the resources then the option dialog truncates on orientation change. This is a regression as this issue did not occur with SDK 3.3.0. Steps to Reproduce: 1. Create a new project 2. Delete the file 'Default-568h@2x.png' from Resources > iPhone folder of the project 3. Replace the app.js with the code below 4. Run the app on an iOS device (a 4" screen device) in portrait mode 5. In the app, click on button 'here'. the option dialog is shown 6. Rotate the device to landscape orientation Actual Result: The option dialog is shown truncated. Refer to attached screenshot {code} var win = Titanium.UI.createWindow({	backgroundColor : 'white' });	var dialog = Titanium.UI.createOptionDialog({ title: 'Hello', options: ['Option 1','Option 2'], cancel:1 }); var btn = Ti.UI.createButton({title:'here'}); btn.addEventListener('click', function(){ dialog.show(); }); win.add(btn); win.open(); {code}
Story points: 2