Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13954] iOS: TableView delete causes visual issues when using layout horizontal and vertical with TextLabels

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2017-06-21T20:48:29.000+0000
Affected Version/sRelease 3.1.0, Release 3.2.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
Reporterflorian bergmann
AssigneeEric Merriman
Created2013-05-22T17:17:30.000+0000
Updated2017-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

FileDateSize
tablebug-ios6simulator.png2013-05-22T18:52:27.000+000046226
tabletest.zip2013-05-22T17:17:30.000+00002159386

Comments

  1. Daniel Sefton 2013-05-22

    Tested and confirmed on iOS 6 simulator with Ti SDK 3.1 GA and latest 3.2 CI.
  2. Lee Morris 2017-06-21

    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

JSON Source