Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6645] Tableview Scrollable:false breaks with textField in row

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-01-23T16:20:57.000+0000
Affected Version/sRelease 1.7.6, Release 1.8.0.1
Fix Version/sSprint 2011-50, Release 1.7.6, Release 2.0.0, Release 1.8.1
ComponentsiOS
Labelsmodule_tableview, parity, qe-testadded
ReporterAlan Leard
AssigneeStephen Tramer
Created2011-12-13T14:15:13.000+0000
Updated2012-10-10T23:37:32.000+0000

Description

Issue

When placing a tableview with two textfields and scrollable:false inside a scrollview to allow movement for the keyboard. The tableview moves and cuts of the top of the table, then does not always return to the right position on Blur

Code

var win = Ti.UI.createWindow();
	
	var data = [];

	var txtUsername = Ti.UI.createTextField({
		left: 10,
		right: 10,
		hintText: 'Username',
		borderWidth: 0,
		borderStyle: null
	});
	var rowUsername = Ti.UI.createTableViewRow({});
	rowUsername.add(txtUsername);
	data.push(rowUsername);

	var txtPassword = Ti.UI.createTextField({
		left: 10,
		right: 10,
		hintText: 'Password',
		borderWidth: 0,
		borderStyle: null
	});
	var rowPassword = Ti.UI.createTableViewRow({});
	rowPassword.add(txtPassword);
	data.push(rowPassword);
	
var view = Ti.UI.createScrollView({
        contentWidth: 'auto',
        contentHeight: 'auto',
        height:480,
        width:320,
        bottom:0
});

var table = Ti.UI.createTableView({
		top:200,
		height: 200,
		style: Ti.UI.iPhone.TableViewStyle.GROUPED,
		backgroundColor: 'transparent',
		rowBackgroundColor: '#FFFFFF',
		allowsSelection: false,
		scrollable: false,
		data: data,
		moving:false
	});
	view.add(table);

win.add(view);
win.open();

Repro Steps

1. Drop code into app.js and run app 2. Click in the password field 3. See Username field get cutoff 4. Blur password, table slides down, but still has username field cutoff

Comments

  1. Vishal Duggal 2011-12-14

    Fixed on master with PR#997
  2. Michael Pettiford 2012-01-12

    Closing issue Tested with Ti Studio 1.0.8.201201101928 Ti Mob SDK 1.9.0.v20120111233134 OSX Lion iPhone 4S, iPad 2 Expected behavior of textfield not being cutoff is shown
  3. Neeraj Gupta 2012-01-23

    Reopening and closing this issue to update label and Fix Version field.

JSON Source