{ "id": "61588", "key": "TIMOB-956", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11224", "name": "Release 1.4.0", "archived": true, "released": true, "releaseDate": "2010-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:54:47.000+0000", "created": "2011-04-15T02:40:11.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ios", "iphone", "statusbar" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:54:47.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

Drop the following code into app.js: http://pastebin.com/7wszjAev

\n

In portrait mode, notice how going back and forth works fine. If\nyou then go to landscape mode and click a button, everything is\nmessed up.

{html}", "attachment": [], "flagged": false, "summary": "Toggling views in landscape mode screws up if statusbar toggled too", "creator": { "name": "damienelmes", "key": "damienelmes", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "damienelmes", "key": "damienelmes", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "124452", "author": { "name": "damienelmes", "key": "damienelmes", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I tried to work around this with a timer, updating the statusbar\na few seconds after the window had been redrawn, but the same\nproblem occurs.

{html}", "updateAuthor": { "name": "damienelmes", "key": "damienelmes", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:40:12.000+0000", "updated": "2011-04-15T02:40:12.000+0000" }, { "id": "124453", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I'm not seeing it; there's an issue where the view resizes\nbefore the status bar animation is complete, and it looks kind of\nugly, but the UI doesn't get screwed up. We may not have control\nover the view resizing, I'll look into it.

\n

In 1.3.0 there was a brief period in the animation where there\nwas a big white block visible. Is this what you're referring\nto?

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:40:12.000+0000", "updated": "2011-04-15T02:40:12.000+0000" }, { "id": "124454", "author": { "name": "damienelmes", "key": "damienelmes", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Really? I just tried again with 1.3.1 pulled from master\nyesterday, and it's still a problem. I change the simulator to\nlandscape mode, press the button once, and the new button is\ndisplayed with the right hand side outside the page. Click again,\nand the whole window goes blank.

{html}", "updateAuthor": { "name": "damienelmes", "key": "damienelmes", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:40:12.000+0000", "updated": "2011-04-15T02:40:12.000+0000" }, { "id": "124455", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Can you tell me if you're testing on simulator or device, which\nOS you've built for, and which OS is running on device?

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:40:13.000+0000", "updated": "2011-04-15T02:40:13.000+0000" }, { "id": "124456", "author": { "name": "damienelmes", "key": "damienelmes", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

osx 10.6 / latest apple xcode
\nsame problem targeting iphone sdk 3.1 and 3.1.3
\nreproducible for me on mobilesdk 1.2, 1.3, 1.3.1
\nboth in simulator and 1g touch

{html}", "updateAuthor": { "name": "damienelmes", "key": "damienelmes", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:40:13.000+0000", "updated": "2011-04-15T02:40:13.000+0000" }, { "id": "124457", "author": { "name": "damienelmes", "key": "damienelmes", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Just tried dropping the code into a new project, same\nproblem

{html}", "updateAuthor": { "name": "damienelmes", "key": "damienelmes", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:40:13.000+0000", "updated": "2011-04-15T02:40:13.000+0000" }, { "id": "124458", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Under 3.2/4.0 there's no issue. This might be Apple's problem.\nWill see if I can duplicate under 3.1.x and if there's anything we\ncan do about it.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:40:13.000+0000", "updated": "2011-04-15T02:40:13.000+0000" }, { "id": "124459", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [9556512c916bdd3ef44125ff8ad09b6ab8cb4a48])\nCloses #956: Subviews of the root view are repositioned\non status bar toggle. -[UIScreen applicationFrame] used to always\nreturn the portrait mode frame. \nhttp://github.com/appcelerator/titanium_mobile/commit/9556512c916bd...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:40:13.000+0000", "updated": "2011-04-15T02:40:13.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }