{ "id": "61116", "key": "TIMOB-484", "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": "11220", "name": "Release 1.1.0", "archived": true, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:53:14.000+0000", "created": "2011-04-15T02:30:04.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:53:14.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}

We need to support a simple top-down layout for our native\ncontainers (windows, views, etc.)

\n

This involves two major changes:

\n

1) containers must support a layout property. We will initially\nonly support a block layout (i.e., items added to a container will\nbe stacked based on their explicit height or calculated height (for\nheight:'auto')

\n

2) views (all views) must support margin, marginTop, marginLeft,\nmarginBottom, marginRight and padding, paddingTop, paddingLeft,\npaddingBottom, and paddingRight

{html}", "attachment": [], "flagged": false, "summary": "Add support for block (or whatever you want to call it) layout", "creator": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "123362", "author": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

Reviewed your doc and talked it over with Jeff. The reality is\nthat 90% of the cases only require vertical layout, so let's start\nsimple.

\n

On the parent view let's add the ability to support a layout\nproperty. For now, this property will support two values: absolute\nand vertical. Absolute is the default.

\n

By default views will be added directly below the previously\nadded view (i.e., no space between the views). Sub views can use\ntheir top, left, right and bottom properties to effectively specify\nrelative positioning (acts like margin). So if the second sub view\nadded specifies a top:10, we would place that view 10 pixels below\nthe view above it.

{html}", "updateAuthor": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:04.000+0000", "updated": "2011-04-15T02:30:04.000+0000" }, { "id": "123363", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Verifying behavior: MarginFoo is the same as foo in absolute\nlayout? (IE, it's the space outside the view owning the property.\nPadding would be the space inside the view?

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:30:04.000+0000", "updated": "2011-04-15T02:30:04.000+0000" }, { "id": "123364", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Nolan

\n

Do I understand correctly that relative positioning is currently\nonly available for windows, meaning that only their direct children\nflow vertically?

\n

Is there any plan to facilitate multiple views being relatively\npositioned within a container view and, if so, do you have any idea\nhow long until it is released?

\n

This functionality, along with percentages used for width,\nheight, left, right, top, bottom etc, will vastly simplify screen\nbuilding for different sized target device. Note that percentages\ncurrently do not work - are you also aware of this?

\n

Thank you very much
\nHal

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