{ "id": "62071", "key": "TIMOB-1439", "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": "11240", "name": "Release 1.6.0 M07", "archived": true, "released": true, "releaseDate": "2011-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:56:10.000+0000", "created": "2011-04-15T02:52:28.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "1.4", "defect", "ios", "release-1.6.0", "row", "sdk", "slider", "table" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:56:10.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}

A customer reported today that if he puts a slider in a table\nrow, infinite change results occur. I have verified this in his\ncode by removing the slider from the table row and the events are\nnot fired. Attaching his files as they are test files.

\n

This happens on iOS 4 and sdk 1.4

{html}", "attachment": [ { "id": "17989", "filename": "opts-test.js", "author": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:52:28.000+0000", "size": 3596, "mimeType": "application/x-javascript" }, { "id": "17990", "filename": "params.js", "author": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:52:29.000+0000", "size": 19367, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "Slider in a table row causes infinite change events", "creator": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "125690", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Note to self/update. This is happening because the label is\nheight 'auto', and as such, triggers childWillResize in the table\nrow, which triggers a reload. The reload aborts the dragging.

\n

The workaround is to have the label height be constant, which\nwouldn't trigger this, or to have the label outside of the\ntable.

\n

This needs addressing in the layout refactor; doing a reload is\ntoo heavy handed when there's no actual row size change, yet\ncurrently the row won't change the layout otherwise.

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

This may have been fixed in the layout refactor, but circle back\nto TBS.

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:52:29.000+0000", "updated": "2011-04-15T02:52:29.000+0000" }, { "id": "125692", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Somehow slipped through the cracks; there's a test in bugtests\nfor #1439.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:52:30.000+0000", "updated": "2011-04-15T02:52:30.000+0000" }, { "id": "125693", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

Tested with the code provided and works as expected.

\n

iPhone Simulator 4.2

\n

Ti. SDK 1.6 (Jan 25 2011 17:39 r1ead074f)

{html}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:52:30.000+0000", "updated": "2011-04-15T02:52:30.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }