{ "id": "61986", "key": "TIMOB-1354", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T02:50:16.000+0000", "created": "2011-04-15T02:50:16.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "defect", "ios", "iphone" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:18:35.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}

\nCommunity Q&A item

\n

It seems that text is not properly reformatted when the\napplication switches between landscape and portrait mode. I put\ntogether a very small sample app (~100 lines of code): http://pastie.org/1054148

\n

To see what I mean, just fire up the code and do the\nfollowing:

\n
    \n
  1. In Tab1, switch to landscape mode (command + left\narrow).
  2. \n
  3. Then move to Tab2, and notice that the text has not been\nreformatted.
  4. \n
  5. While still in Tab2, switch back to portrait mode (command +\nright arrow)
  6. \n
  7. Move back to Tab1, and notice the text is also screwed up\nthere
  8. \n
\n

NOTE:

\n

I duplicated this behavior on 1.3.3 version from head.

{html}", "attachment": [], "flagged": false, "summary": "Orientation and layout issues", "creator": { "name": "kevinwhinnery", "key": "kevinwhinnery", "displayName": "kevinwhinnery", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "125435", "author": { "name": "mike", "key": "mike", "displayName": "Mike", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Is anyone ever going to look at this bug? It's been like 6\nmonths. I'd like to support landscape view in my Titanium apps.

{html}", "updateAuthor": { "name": "mike", "key": "mike", "displayName": "Mike", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:16.000+0000", "updated": "2011-04-15T02:50:16.000+0000" }, { "id": "125436", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

My apologies for not looking at this earlier. It's actually due\nto the sample code requesting two conflicting widths. That is,\nthere's the width set to 'auto', which instructs the text field to\nstretch as far as it can horizontally to hopefully fit the text in\none line. But there's also the fact that the containing row has a\nfixed width, and the label wants to have left and right margins of\n10 within that.

\n

It's not straightforward, and we still need to work on both\nensuring the algorithm is the right behavior to go, and if so,\neducating people on it. 'Auto' can be misleading as it's meant for\n'Size to fit my contents, regardless of the parent's bounds,' and\nit sometimes feels like 'Do what I mean.'

\n

Either way, if you remove the extra autos (Lines 49 and 83),\nwhich undoes the conflicting widths issue, you'll get the desired\neffect.

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:17.000+0000", "updated": "2011-04-15T02:50:17.000+0000" }, { "id": "125437", "author": { "name": "mike", "key": "mike", "displayName": "Mike", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I removed the width settings on lines 49 and 83, and the problem\npersists.

{html}", "updateAuthor": { "name": "mike", "key": "mike", "displayName": "Mike", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:17.000+0000", "updated": "2011-04-15T02:50:17.000+0000" }, { "id": "125438", "author": { "name": "mike", "key": "mike", "displayName": "Mike", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Your suggestion never did work for me, and by marking my item as\ninvalid without trying your own suggestion, you've killed any hope\nI ever had (small, though it was) that this item might ever be\naddressed.

{html}", "updateAuthor": { "name": "mike", "key": "mike", "displayName": "Mike", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:17.000+0000", "updated": "2011-04-15T02:50:17.000+0000" }, { "id": "125439", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Actually, I tried my suggestion, and it worked fine. Would you\nlike screenshots? Either way, the original bug is invalid, in that\nit's a misinterpretation of what auto is.

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:17.000+0000", "updated": "2011-04-15T02:50:17.000+0000" }, { "id": "125440", "author": { "name": "mike", "key": "mike", "displayName": "Mike", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I just went back, created a brand new project, copied the code\nfrom the original pastie, then removed lines 49 and 83. It still\ndoes not work correctly in the emulator or on my iPhone device. Did\nyou change something in addition to those two lines which you\nforgot to mention?

\n

If it's a misinterpretation of auto, I can accept that - but\nplease show me what I need to do to this code to correct it. Please\nnote that there are 4 short reproduction steps.

\n

I am using iPhone SDK 4.1. I tested with 1.3.2 (in which I\ninitially reported the problem) and 1.4.2.

{html}", "updateAuthor": { "name": "mike", "key": "mike", "displayName": "Mike", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:17.000+0000", "updated": "2011-04-15T02:50:17.000+0000" }, { "id": "125441", "author": { "name": "mike", "key": "mike", "displayName": "Mike", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

bashes face into desk vigorously

{html}", "updateAuthor": { "name": "mike", "key": "mike", "displayName": "Mike", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:17.000+0000", "updated": "2011-04-15T02:50:17.000+0000" }, { "id": "125442", "author": { "name": "mike", "key": "mike", "displayName": "Mike", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Kevin, do you have a minute to confirm if Blain's fix works for\nyou?

{html}", "updateAuthor": { "name": "mike", "key": "mike", "displayName": "Mike", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:17.000+0000", "updated": "2011-04-15T02:50:17.000+0000" }, { "id": "130786", "author": { "name": "nderzhak", "key": "nderzhak", "displayName": "Nikolai Derzhak", "active": true, "timeZone": "America/Phoenix" }, "body": "rollback wrong update", "updateAuthor": { "name": "nderzhak", "key": "nderzhak", "displayName": "Nikolai Derzhak", "active": true, "timeZone": "America/Phoenix" }, "created": "2011-04-15T07:23:12.000+0000", "updated": "2011-04-15T07:23:12.000+0000" }, { "id": "410976", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T23:18:35.000+0000", "updated": "2017-03-09T23:18:35.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }