[TIMOB-5765] iOS: Image appears in portrait mode when application's orientation mode is set the landscape right only
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-11-18T15:25:25.000+0000 |
Affected Version/s | Release 1.8.0 |
Fix Version/s | Sprint 2011-46, Release 1.8.0.1 |
Components | iOS |
Labels | module_orientation, regression |
Reporter | Alan Vaghti |
Assignee | Vishal Duggal |
Created | 2011-10-17T00:00:53.000+0000 |
Updated | 2014-06-19T12:44:34.000+0000 |
Description
1) Create a new project and put the following the app.js
var win = Ti.UI.createWindow({
backgroundColor:'white'
});
var img = Ti.UI.createImageView({image:'grouch.jpg'});
win.add(img);
win.orientationModes = [
Ti.UI.LANDSCAPE_RIGHT
];
win.open();
2) Put the attached grouch.jpg into the Resources folder
3) Hold the device in portrait mode and launch the application
Actual results: Image initially appears in portrait mode. The image will rotate to the correct orientation once the devices orientation is changed to landscape right. After it is in landscape right mode, it will not change to any other orientation mode.
Expected results: Image only appears in landscape right mode.
Notes:
This only occurs on the first launch of the app.
This issue is a regression. When tested in 1.7.2, the image appears momentarily in portrait mode before redrawing itself in landscape mode. It does not require changing the devices orientation to draw the image in the correct position.
Attachments
File | Date | Size |
---|---|---|
grouch.jpg | 2011-10-17T00:00:53.000+0000 | 52018 |
Pending pull #736
Tested on Ti Studio 1.0.7.201112080131 Ti Mob SDK 1.8.0.1.v20111207180431 OSX Lion iPhone 4S OS 5.0.1 Expected behavior is shown of image launching in landscape