Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17645] iOS8: First launch - unexpected layout for Ti.UI.Portrait

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-09-15T16:27:20.000+0000
Affected Version/sRelease 3.4.0
Fix Version/sRelease 3.4.0, Release 3.5.0
ComponentsiOS
Labelsios8, module_orientation, qe-3.4.0, qe-manualtest, regression
ReporterOlga Romero
AssigneeVishal Duggal
Created2014-09-08T18:13:55.000+0000
Updated2014-11-21T20:30:50.000+0000

Description

When launching app in a LANDSCAPE_RIGHT mode, the image layout is wrong. Rotating device to PORTRAIT results in image size reduction. It happens only on first launch. Killing the app and launching it again will result in an expected layout. app.js
var win = Ti.UI.createWindow({
	backgroundColor:'white'
});

var img = Ti.UI.createImageView({image:'grouch.jpg'});

win.add(img);

win.orientationModes = [
    Ti.UI.PORTRAIT,
    Ti.UI.UPSIDE_PORTRAIT
];

win.open();

Attachments

FileDateSize
expected.png2014-09-08T18:13:55.000+0000425655
fixed.png2014-09-10T17:35:57.000+0000750588
grouch.jpg2014-09-08T18:13:55.000+000052018
ios8_1st .png2014-09-08T18:13:55.000+0000294609
ios8_1strotate.png2014-09-08T18:13:55.000+0000321956

Comments

  1. Jon Alter 2014-09-09

    PR master: https://github.com/appcelerator/titanium_mobile/pull/6033 PR 3_4_X: https://github.com/appcelerator/titanium_mobile/pull/6034
  2. Olga Romero 2014-09-10

    Tested and verified the fixed (fixed.pnj), using Mac osx 10.9.4 Maverics Appcelerator Studio, build: 3.4.0.201409081810 Titanium SDK, build: 3.4.0.v20140909222515 acs@1.0.16 alloy 1.5.0-rc install@0.1.7 npm@1.4.23 sudo@1.0.3 titanium 3.4.0-rc titanium-code-processor@1.1.1 Xcode6-Beta7 Device: iPhone 5S iOS 8.0GMS

JSON Source