{ "id": "62104", "key": "TIMOB-1472", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:56:16.000+0000", "created": "2011-04-15T02:53:45.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect" ], "versions": [], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:56:16.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

See Helpdesk\n30521 for example. Basically in a Window, Labels added as\nchildren don't draw, collapse to zero, or some other issue.\nSide-effect is empty window.

{html}", "attachment": [ { "id": "17998", "filename": "screen_label.png", "author": { "name": "marco.schierhorn(atgmail)", "key": "marco.schierhorn(atgmail)", "displayName": "marco.schierhorn (at gmail)", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:53:45.000+0000", "size": 157826, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Vertical Layout Collapses To Empty", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "125787", "author": { "name": "marco.schierhorn(atgmail)", "key": "marco.schierhorn(atgmail)", "displayName": "marco.schierhorn (at gmail)", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Is there any new status on that ticket?
\nWould really need to have this feature for horizontal layout.
\nIm getting a list of values from a xml file of our client.
\nSo i dont really know the width/sizes of the lables im creating of\nthis values and so i cant
\nget a good horizontal scrolling bar at the top :-(

{html}", "updateAuthor": { "name": "marco.schierhorn(atgmail)", "key": "marco.schierhorn(atgmail)", "displayName": "marco.schierhorn (at gmail)", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:53:45.000+0000", "updated": "2011-04-15T02:53:45.000+0000" }, { "id": "125788", "author": { "name": "stephane", "key": "stephane", "displayName": "Stephane", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I'm having the same issue when setting vertical layout to a\nscrollview window is empty (scrollbar appears with the correct\nheight) setting a layout to a view renders a correct view :

\n

var win = Titanium.UI.currentWindow;

\n

var scrollview =\nTitanium.UI.createScrollView({contentWidth:'auto',contentHeight:'auto',top:0,showVerticalScrollIndicator:true,showHorizontalScrollIndicator:true});
\nvar sview =\nTitanium.UI.createView({layout:'vertical',contentWidth:320,contentHeight:'auto'});

\n

var win_titre = Titanium.UI.createLabel({text:'TITLE',\nbackgroundColor:'#09205F', width:'auto',\nheight:'auto',font:{fontSize:14}, color:'#fff',top:0,left:0,\nvisible:true});
\nvar win_description = Titanium.UI.createLabel({text:'MAIN LONG\nTEXT', height:'auto',width:'auto',font:{fontSize:12},\ntop:5,left:0});

\n

sview.add(win_titre);
\nsview.add(win_description);

\n

scrollview.add(sview);
\nwin.add(scrollview);

{html}", "updateAuthor": { "name": "stephane", "key": "stephane", "displayName": "Stephane", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:53:46.000+0000", "updated": "2011-04-15T02:53:46.000+0000" }, { "id": "125789", "author": { "name": "stephane", "key": "stephane", "displayName": "Stephane", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I have just discovered that using

\n

var sview =\nTi.UI.createView({width:'auto',height:'auto',top:0,layout:'vertical'});

\n

instead of

\n

var sview =\nTitanium.UI.createView({contentWidth:'auto',contentHeight:'auto',layout:'vertical'});

\n

make the whole view appear in the scrollView (cool)

{html}", "updateAuthor": { "name": "stephane", "key": "stephane", "displayName": "Stephane", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:53:46.000+0000", "updated": "2011-04-15T02:53:46.000+0000" }, { "id": "125790", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [fae3442e85164bc616e31441fa5de28fb18e41fa])\n[#987\nstate:fixed-in-qa][#1472 state:fixed-in-qa][#1856\nstate:fixed-in-qa][#863 state:fixed-in-qa] scroll view support\nvertical layout. Fixed other layout issues with scrollview. Note:\n#863\nthe KS test seems to have been changed to include top. I removed\ntop and the label display as expected. \nhttp://github.com/appcelerator/titanium_mobile/commit/fae3442e85164...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:53:46.000+0000", "updated": "2011-04-15T02:53:46.000+0000" }, { "id": "125791", "author": { "name": "marco.schierhorn(atgmail)", "key": "marco.schierhorn(atgmail)", "displayName": "marco.schierhorn (at gmail)", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Still not working for me with a horizontal layout
\nAll Lables are put on top of each other label.

\n
\n  var scrollView = Titanium.UI.createScrollView(\n  {\n    contentWidth : 'auto',\n    contentHeight : sc(44),\n    left : 27,\n    right : 27,\n    height : 46,\n    scrollType : 'horizontal',\n    backgroundImage : '../assets/images/header-top-bg.gif'\n  });\n\n  var sView = Ti.UI.createView(\n  {\n    layout : 'horizontal',\n    height : 'auto',\n    width : 'auto'\n  });\n\n  for (i = 0; i < ressorts.length; i++)\n  {\n    titleUpperCase = ressorts[i].name.toUpperCase();\n    var ressortColor = '#FFFFFF';\n\n    if (i == 0)\n    {\n      ressortColor = '#CD2F26';\n    }\n\n    var l1 = Ti.UI.createLabel(\n    {\n      text : titleUpperCase,\n      font :\n      {\n        fontSize : 13\n      },\n      color : ressortColor,\n      width : 'auto',\n      textAlign : 'left',\n      height : sc(40),\n      ressortBit : ressorts[i].bit,\n      name : ressorts[i].name\n    });\n\n    l1.addEventListener('click', changeRessort);\n    sView.add(l1);\n   }\n  scrollView.add(sView);\n
{html}", "updateAuthor": { "name": "marco.schierhorn(atgmail)", "key": "marco.schierhorn(atgmail)", "displayName": "marco.schierhorn (at gmail)", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:53:46.000+0000", "updated": "2011-04-15T02:53:46.000+0000" }, { "id": "125792", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

1.4.2.4ce7ff G1 running 1.6, 2.2 simulator, using original\nprovided code snippet.

\n

Marco, the code as provided won't run. If you still encounter\nthe issue using todays pull, please log a new helpdesk ticket.

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:53:47.000+0000", "updated": "2011-04-15T02:53:47.000+0000" }, { "id": "125793", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I'm sure the fix is fine - if it does not work, can't it simply\nbe reopened?
\nBearing in mind that those people for whom this issue is\nparticularly crucial are presumably watching this ticket, it would\nbe a real flaw in the ticketing system if the issue was duplicated\nelsewhere, leaving everyone completely unaware.

{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:53:47.000+0000", "updated": "2011-04-15T02:53:47.000+0000" }, { "id": "125794", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

OK, observing what happened after my previous post, it seems\nthat the conversation can still continue in this ticket, and at\nleast everyone receives an emailed update. If this is truly the\ncase, then that will be fine.

{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:53:47.000+0000", "updated": "2011-04-15T02:53:47.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }