[TIMOB-13954] iOS: TableView delete causes visual issues when using layout horizontal and vertical with TextLabels
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Low |
| Status | Closed |
| Resolution | Cannot Reproduce |
| Resolution Date | 2017-06-21T20:48:29.000+0000 |
| Affected Version/s | Release 3.1.0, Release 3.2.0 |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | n/a |
| Reporter | florian bergmann |
| Assignee | Eric Merriman |
| Created | 2013-05-22T17:17:30.000+0000 |
| Updated | 2017-06-21T20:48:29.000+0000 |
Description
*Problem*
If a tableRow has the attribute layout "horizontal" and contains an view that has the attribute layout "vertical" and this view contains a textlabel that has has a certain number of chars or width or some strange linebreak you will experience visual issues when deleting (swipe or edit) an row.
*Test case*
var win = Ti.UI.createWindow({
title : 'title',
backgroundColor : 'white'
});
var tableView = Ti.UI.createTableView({
height : Ti.UI.FILL,
width : '320dp',
editable : true,
touchEnabled : true
});
win.add(tableView);
var data = [];
for ( i = 0; i < 20; i++) {
var threadRowView = Ti.UI.createTableViewRow({
layout : 'horizontal'
});
var threadRowContent = Ti.UI.createView({
left : '62dp',
height : Ti.UI.SIZE,
layout : 'vertical',
width : '260dp'
});
var textLabel = Ti.UI.createLabel({
width : '250dp',
text : 'Hallo wie gehts? Wollen wir morgen was essen gehen?',
color : '#000',
borderWidth : 1,
borderColor : '#000',
height : Ti.UI.SIZE
});
threadRowContent.add(textLabel);
threadRowView.add(threadRowContent);
data.push(threadRowView);
}
tableView.setData(data);
win.open();
Attachments
| File | Date | Size |
|---|---|---|
| tablebug-ios6simulator.png | 2013-05-22T18:52:27.000+0000 | 46226 |
| tabletest.zip | 2013-05-22T17:17:30.000+0000 | 2159386 |
Tested and confirmed on iOS 6 simulator with Ti SDK 3.1 GA and latest 3.2 CI.
I am able to reproduce this issue with the following environment; iPhone 7 (10.2) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170620103414 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131