[TIMOB-17653] iOS: Option Dialog shown truncated on orientation change when project resources don't have Default-568h@2x.png file
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-10-02T20:34:28.000+0000 |
Affected Version/s | Release 3.4.0 |
Fix Version/s | Release 3.4.2, Release 3.5.0, Release 4.0.0 |
Components | iOS |
Labels | module_optiondialog, qe-3.4.0, qe-manualtest, regression |
Reporter | Satyam Sekhri |
Assignee | Vishal Duggal |
Created | 2014-09-09T05:21:55.000+0000 |
Updated | 2014-12-03T22:41:52.000+0000 |
Description
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
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();
Attachments
File | Date | Size |
---|---|---|
OptionDialogIssue.png | 2014-09-09T05:21:56.000+0000 | 48551 |
Could be fixed as part of the related tickets.
Resolved as part of TIMOB-17804
Verified fix on: Mac OSX 10.9.5 Appcelerator Studio, build: 3.4.0.201409261245 Titanium SDK build: 3.5.0.v20141002135233 Titanium CLI, build: 3.4.0 Alloy: 1.5.1 Xcode6.0.1, 6.1 iPhone 5 (8.1 beta) Added the attached test code to an existing project, removed the splashcreen file and then built to a 4" screen device. When the option dialog is on screen and the device is rotated it no longer appears truncated. Closing ticket.