Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17155] Android: ListView ListItems do not display in order if the borderWidth property is specified

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-06-16T19:35:14.000+0000
Affected Version/sRelease 3.2.0, Release 3.2.2, Release 3.2.3, Release 3.3.0
Fix Version/sRelease 3.4.0
ComponentsAndroid
Labelsmodule_listview, qe-closed-3.4.0, qe-manualtest, qe-testadded
ReporterBetty Tran
AssigneeHieu Pham
Created2014-06-13T13:27:55.000+0000
Updated2014-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

FileDateSize
app.js2014-06-13T13:27:55.000+00001532
border.png2014-06-13T13:27:55.000+000073908
noborder.png2014-06-13T13:27:55.000+000069827

Comments

  1. Hieu Pham 2014-06-16

    master PR: https://github.com/appcelerator/titanium_mobile/pull/5803
  2. Vishal Duggal 2014-06-16

    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.
  3. Dhirendra Jha 2014-08-19

    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.

JSON Source