[TIMOB-26689] Windows: Wrong height for TableViewRow with Label
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2019-03-05T15:08:12.000+0000 |
Affected Version/s | Release 7.5.0 |
Fix Version/s | Release 8.1.0 |
Components | Windows |
Labels | n/a |
Reporter | Kota Iguchi |
Assignee | Kota Iguchi |
Created | 2019-01-04T05:02:59.000+0000 |
Updated | 2019-03-05T15:08:12.000+0000 |
Description
The height of first TableView row is rendered too big compared to other rows when row has a Label with relative width (e.g. "_80%_").
var win = Ti.UI.createWindow();
var tableView = Ti.UI.createTableView({
width: Ti.UI.FILL,
height: Ti.UI.FILL,
data: [createRow(), createRow(), createRow()]
});
win.add(tableView);
function createRow() {
var uid = (new Date()).getTime();
var row = Ti.UI.createTableViewRow({
borderWidth: 1, borderColor: '#F0F',
});
var label1 = Ti.UI.createLabel({
width: '80%',
text: 'Test 1 ' + uid,
borderWidth: 1, borderColor: '#FF0'
});
row.add(label1);
return row;
}
win.open();
Expected: The height of first row should have same height with other rows.
Attachments
File | Date | Size |
---|---|---|
wrong.png | 2019-01-04T05:07:07.000+0000 | 25091 |
https://github.com/appcelerator/titanium_mobile_windows/pull/1344
FR Passed. Waiting on Jenkins build.
Merged into master.
*Closing ticket.* Fix verified in SDK Version 8.1.0.v20190304181927. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile_windows/pull/1344