[TIMOB-1439] Slider in a table row causes infinite change events
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:56:10.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M07 |
Components | iOS |
Labels | 1.4, defect, ios, release-1.6.0, row, sdk, slider, table |
Reporter | ctredway |
Assignee | Blain Hamon |
Created | 2011-04-15T02:52:28.000+0000 |
Updated | 2011-04-17T01:56:10.000+0000 |
Description
A customer reported today that if he puts a slider in a table row, infinite change results occur. I have verified this in his code by removing the slider from the table row and the events are not fired. Attaching his files as they are test files.
This happens on iOS 4 and sdk 1.4
Attachments
File | Date | Size |
---|---|---|
opts-test.js | 2011-04-15T02:52:28.000+0000 | 3596 |
params.js | 2011-04-15T02:52:29.000+0000 | 19367 |
Note to self/update. This is happening because the label is height 'auto', and as such, triggers childWillResize in the table row, which triggers a reload. The reload aborts the dragging.
The workaround is to have the label height be constant, which wouldn't trigger this, or to have the label outside of the table.
This needs addressing in the layout refactor; doing a reload is too heavy handed when there's no actual row size change, yet currently the row won't change the layout otherwise.
This may have been fixed in the layout refactor, but circle back to TBS.
Somehow slipped through the cracks; there's a test in bugtests for #1439.
Tested with the code provided and works as expected.
iPhone Simulator 4.2
Ti. SDK 1.6 (Jan 25 2011 17:39 r1ead074f)