Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11218] iOS: TableView top row content is not visible with search filter

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-10-02T18:13:50.000+0000
Affected Version/sn/a
Fix Version/sSprint 2012-20 API, 2012 Sprint 20
ComponentsiOS
LabelsSupportTeam, ios, ios6, qe-port
ReporterHimanshu Patel
AssigneeIngo Muschenetz
Created2012-09-30T08:01:11.000+0000
Updated2013-03-13T18:56:03.000+0000

Description

Problem

We assigned result set to Tablet View and found that top row content is not visible.

Steps to reproduce

1. Assign Result Set to Table View 2. Click on Search box and search with any know string, i.e. "row" 3. To fulfill the scenario search filter will contain 10 to 15 records 4. Now click on Hide Keyboard icon on iPad 3 5. Click again on search box, we will get first 2 or 3 row as blank without any content,we will get content on the screen once we scroll the table view.

Test case

//required variables
var data = [], i, row;

//creating the UI
var window = Ti.UI.createWindow({
	backgroundColor: 'gray'
});

var searchBar = Titanium.UI.createSearchBar({
    barColor:'#000', 
    showCancel:true,
    height:43,
    top:0,
});
var tableView = Ti.UI.createTableView({
	search: searchBar
});

for( i=0; i<= 15; i++){
	row = Ti.UI.createTableViewRow({
		title: 'Row #' + i
	});
	data.push(row);
}

tableView.setData(data);

window.add(tableView);

window.open();

Comments

  1. Eduardo Gomez 2012-10-01

    Adding labels & posting an initial test case to attempt to reproduce the issue. @Himanshu Is your "Result Set" data coming back from a DB operation?
  2. Himanshu Patel 2012-10-01

    @Edurdo, Yes I am using Sqlite database. I can share my code snippet too.
  3. Sabil Rahim 2012-10-02

    Cannot Reproduce this issue: Tried on Xcode 4.5 on master (3.0.0) build b66de42e539d62973e8e9e5343ba2ced2e5c2ba5 on 2_1_X (2.1.3) build d81b7b3683911206447296da9cd5b5722c0fbbf1 on Sim 5.0 and iPad 3 running iOS 6
  4. Eduardo Gomez 2012-10-02

    @Himanshu Yes, either please share your snippet code or point me to the eTrack app files - if needed email me: egomez@appcelerator.com
  5. Vishal Duggal 2012-10-02

    Marking as can not reproduce. Please reopen when test data is available
  6. Anshu Mittal 2013-01-15

    tested with: SDK: 3.0.0 GA Studio: 3.0.1.201212181159 Device: iPad2(v5.1), iPad3(v6.0) Cannot reproduce with above environment

JSON Source