Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6664] iOS: Scroll View behaving differently in iOS 5 nad 4.3

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionInvalid
Resolution Date2017-05-22T16:37:45.000+0000
Affected Version/sRelease 1.8.0.1, Release 2.0.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterSabil Rahim
AssigneeIngo Muschenetz
Created2011-12-14T12:25:56.000+0000
Updated2017-06-07T21:34:51.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 up as expected and does not snap back into its place only in 5.0 simulator.Behaves as expected in 4.3 simulator.

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 4. Blur password, table slides down, but the scrollview does not snap back into place under 5.0 simulator

Comments

  1. Lee Morris 2017-05-22

    Resolving as Invalid. If the problem persists please file a new ticket.

JSON Source