Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14485] iOS: Keyboard hides last row in a TableView with less than 10 rows

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2017-06-13T22:47:09.000+0000
Affected Version/sRelease 3.1.1
Fix Version/sn/a
ComponentsiOS
Labelshide, keyboard, tableview, tableviewrow
ReporterMatej
AssigneeEric Merriman
Created2013-06-30T21:23:24.000+0000
Updated2017-06-13T22:47:09.000+0000

Description

*Problem* The keyboard hides the last row in a TableView when the table has less than 10 rows. It is a big problem if last row is button. *Test case*
var win = Ti.UI.createWindow();
var table = Ti.UI.createTableView({
	style : Ti.UI.iPhone.TableViewStyle.GROUPED
});
var data = [];

for (var i = 0; i < 8; i++)// i<10 is working
{
	var row = Ti.UI.createTableViewRow({
		width : Ti.UI.FILL,
		height : Ti.UI.FILL
	});
	var tField = Ti.UI.createTextField({
		width : Ti.UI.FILL,
		height : "100%"
	});

	row.add(tField);
	data.push(row);
}

table.data = data;

win.add(table);
win.open();

Attachments

FileDateSize
ios_issue.png2013-06-30T21:23:25.000+0000201696

Comments

  1. Daniel Sefton 2013-07-03

    Tested and confirmed on iOS 6 simulator with Ti SDK 3.1.1 GA.
  2. Lee Morris 2017-06-13

    I am unable to reproduce this issue with the following environment; iPhone 7 (10.2) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170609091155 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