Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5765] iOS: Image appears in portrait mode when application's orientation mode is set the landscape right only

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2011-11-18T15:25:25.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sSprint 2011-46, Release 1.8.0.1
ComponentsiOS
Labelsmodule_orientation, regression
ReporterAlan Vaghti
AssigneeVishal Duggal
Created2011-10-17T00:00:53.000+0000
Updated2014-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

FileDateSize
grouch.jpg2011-10-17T00:00:53.000+000052018

Comments

  1. Vishal Duggal 2011-11-18

    Pending pull #736
  2. Michael Pettiford 2011-12-08

    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

JSON Source