Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-979] iOS: TableView -Vertical Layout: wrong positioning on load & blurred after scroll

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-06-22T11:33:34.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelscore
ReporterMarkus Gerlach
AssigneeNeeraj Gupta
Created2011-04-15T02:40:40.000+0000
Updated2017-03-09T22:42:22.000+0000

Description

maybe it's discussable but i think it's a bug because there are no properties marked as "must set".
when loading the attached tableview the text is fine but the second label (l2) in the first and third row is not in the row/view and has no bottom:1. rows with 2 or more lines of text in the first label (l1) will be displayed correct.
in the given example code the positions are corrected after scrolling up and down but then some parts of the text are blurred.

example code (based on the KS-example):

edit: uploaded code, formatting doesn't work.

Attachments

FileDateSize
test.js2011-04-15T02:40:40.000+00001030

Comments

  1. Vishal Duggal 2012-06-22

    Test Code
       
       var win = Ti.UI.createWindow({backgroundColor:'white'});
       var tv = Ti.UI.createTableView({minRowHeight:20});
       var text = [];
       text[0] = 'I am a short sentence.';
       text[1] = 'I am a long sentence that is repeated the most in order to take up the most amount of room in a table view row.';
       text[2] = 'I am a short sentence.';
       text[3] = 'I am a long sentence that is repeated the most in order to take up the most amount of room in a table view row.I am a long sentence that is repeated the most in order to take up the most amount of room in a table view row.';
       var data = [];
       for (var i=0;i<4;i++)
       {
       var row = Ti.UI.createTableViewRow({height:'auto'});	
       var textView = Ti.UI.createView({
       	height:Ti.UI.SIZE,
       	layout:'vertical',
       	top:1,
       	bottom:1
       });	
       var l1 = Ti.UI.createLabel({
       	text:text[i],
       	height:'auto',
       	font:{fontSize:13,fontWeight:'normal'},		
       });
       textView.add(l1);
       var l2 = Ti.UI.createLabel({
       	text:'dorem',
       	height:'auto',
       	font:{fontSize:10,fontWeight:'bold'}
       });
       textView.add(l2);
       row.add(textView);	
       data.push(row);
       }
       tv.setData(data);
       win.add(tv);
       
       win.open();
       
  2. Lee Morris 2017-03-09

    Closing ticket as the issue cannot be reproduced.

JSON Source