Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13506] Android: Including a borderColor or borderWidth in a tableRow data description causes the title to not show

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-05-17T18:16:42.000+0000
Affected Version/sRelease 2.1.3, Release 2.1.4, Release 3.0.2, Release 3.1.0
Fix Version/s2013 Sprint 10 API, 2013 Sprint 10, Release 3.1.1, Release 3.2.0
ComponentsAndroid
Labelsmodule_tableview, qe-closed-3.1.1, qe-testadded, regression
ReporterMilt Grinberg
AssigneeSunila
Created2012-12-18T20:25:59.000+0000
Updated2014-01-30T20:53:38.000+0000

Description

*Steps to reproduce* 1. Create a new Android mobile project 2. Run the test case 3. The title on the row which has a borderColor or borderWidth property does not show. *Test case*
var win = Titanium.UI.createWindow({backgroundColor: "#FFF"});

var tableData = [{
	title : 'Apples'
}, {
	title : 'Bananas',
	borderColor : 'blue',
        borderWidth : 4,
}, {
	title : 'Potatoes'
}];

var table = Ti.UI.createTableView({
	data : tableData
});
win.add(table);

win.open();

Attachments

FileDateSize
borderColor_failed.png2013-04-09T21:30:08.000+000012539
borderColor_work.png2013-04-09T21:30:08.000+000013295

Comments

  1. Daniel Sefton 2013-01-02

    Are you sure this worked with 2.1.4 GA? I tested it on 2.1.2 GA, 2.1.3 GA and 2.1.4 GA, 3.0.0 GA and latest 3.1 master and it doesn't work on any of them. That's with the 2.3.X Android emulator. Can you please state the Android device/emulator and OS version you tested this on? Thanks.
  2. Milt Grinberg 2013-04-09

    Not quite sure why you need this additional information. It seems like a bug no matter where I thought it worked in the past. I am running this code on a Samsung Droid Charge running Android 2.3.6. But you seem to say that it fails on every version of the Titanium SDK. Can it be fixed?? I tested it and it works on my Samsung Charge with 2.1.1GA V8., also 2.1.2GA V8. It failed starting on 2.1.3GA V8 I added the borderWidth property so you can actually see the border I added some attachments showing the working screen and not working screen.
  3. Daniel Sefton 2013-04-09

    "I tested it and it works on my Samsung Charge with 2.1.1GA V8., also 2.1.2GA V8. It failed starting on 2.1.3GA V8" The confusion was that you said it works with 2.1.4 GA, I wanted to know which device you were able to get it running on 2.1.4 with. But now you say it only works on 2.1.1 and 2.1.2? Anyway, it's enough information for me to escalate it to engineering now. Thanks.
  4. Daniel Sefton 2013-04-09

    Tested again and I can confirm that it works on 2.1.2 GA, but not from 2.1.3 GA onwards.
  5. Sunila 2013-05-09

    Use getOuterView to get the outermost view (which will return the border) instead of getNativeView. https://github.com/appcelerator/titanium_mobile/pull/4236
  6. Ping Wang 2013-05-17

    3_1_X PR: https://github.com/appcelerator/titanium_mobile/pull/4294
  7. Eric Merriman 2013-05-28

    Verified fixed with: Mac OS 10.8.3 Safari: 6.0.4 Xcode 4.6.2 CLI: 3.1.1-alpha Alloy: 1.1.3-alpha Appcelerator Studio, build: 3.1.1.201305271814 Titanium SDK version 3.1.1.v20130524180421 On: Nexus 4 4.2.1 Nexus 10 4.2 Galaxy S II 2.3.6

JSON Source