GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-07-10T04:31:50.000+0000 |
Affected Version/s | Release 2.1.0, Release 1.8.2 |
Fix Version/s | Release 2.1.0, Sprint 2012-09 API |
Components | iOS |
Labels | SupportTeam, api, module_tableview, qe-testadded |
Reporter | Federico Casali |
Assignee | Radamantis Torres-Lechuga |
Created | 2012-04-12T16:46:07.000+0000 |
Updated | 2012-07-11T11:01:47.000+0000 |
Problem description
Setting an index property for the tableView could break text tableRow layout
Steps to reproduce
- Create a tableView with tableRows including different sized text (see code sample)
- Set the 'index' property for the tabelView (see code sample)
Result: some text might not be displayed as expected
Attached two screenshots, using 'index:[{index:0,title:'a'},{index:1,title:'b'}]' or not.
var win = Ti.UI.createWindow();
win.open();
var row1 = Ti.UI.createTableViewRow({
// height:'auto',
height:Ti.UI.SIZE
});
var label1 = Ti.UI.createLabel({
// height:'auto',
top:0,
height:Ti.UI.SIZE,
text:'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'
});
row1.add(label1);
var row2 = Ti.UI.createTableViewRow({
// height:'auto',
height:Ti.UI.SIZE
});
var label2 = Ti.UI.createLabel({
// height:'auto',
height:Ti.UI.SIZE,
top:0,
text:'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.'
});
row2.add(label2);
var table = Ti.UI.createTableView({
index:[{index:0,title:'a'},{index:1,title:'b'}],
data:[row1,row2]
});
win.add(table);
Additional notes
Customer ticket:
http://support-admin.appcelerator.com/display/APP-276887
Closing issue Tested with Ti Studio build 2.1.0.201206200844 Ti Mobile SDK 2.1.0.v20120619172256 hash rd3a84b13 OSX Lion 10.7.3 iPhone 4S OS 5.1 The expected behavior is shown
Reopening to update labels.