[TIMOB-17155] Android: ListView ListItems do not display in order if the borderWidth property is specified
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-06-16T19:35:14.000+0000 |
Affected Version/s | Release 3.2.0, Release 3.2.2, Release 3.2.3, Release 3.3.0 |
Fix Version/s | Release 3.4.0 |
Components | Android |
Labels | module_listview, qe-closed-3.4.0, qe-manualtest, qe-testadded |
Reporter | Betty Tran |
Assignee | Hieu Pham |
Created | 2014-06-13T13:27:55.000+0000 |
Updated | 2014-08-19T08:30:14.000+0000 |
Description
Description
If a Label or View within a ListSection of a ListView is given a borderWidth property, it does not display in the correct order in relation to the other items in the section. It displays at the bottom of the list. The behaviour expected is that the list item is rendered in the correct order.Steps to reproduce
1. Run the attached app.js code sample 2. Observe the label "medium" appears after "big" despite it being above "big" on creation in the code. If the borderWidth property is removed, it renders in correct order. Attached are screenshots showing this.Attachments
File | Date | Size |
---|---|---|
app.js | 2014-06-13T13:27:55.000+0000 | 1532 |
border.png | 2014-06-13T13:27:55.000+0000 | 73908 |
noborder.png | 2014-06-13T13:27:55.000+0000 | 69827 |
master PR: https://github.com/appcelerator/titanium_mobile/pull/5803
The test case has exposed a bug in Vertical Layout in Titanium. I was however able to verify the fix by setting fixed heights instead of size for the child labels.
Environment - Appc Studio - 3.4.0.201408180158 SDK - 3.4.0.v20140815142514 acs - 1.0.16 alloy - 1.5.0-dev npm - 1.3.2 titanium - 3.4.0-dev titanium-code-processor - 1.1.1 OS - mavericks (v10.9.4) Xcode - 6Beta5 Device - iPhone5 (v7.1.2), Nexus5(v4.4.4) Result - Now its working fine. Shows the ListView ListItems in proper order with borderWidth property. See the attached screen shot. Hence closing this issue. However found an issue when ListView ListItems disappear on scrolling. Logged separate issue TIMOB-17512 for this.