GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-01-23T16:20:57.000+0000 |
Affected Version/s | Release 1.7.6, Release 1.8.0.1 |
Fix Version/s | Sprint 2011-50, Release 1.7.6, Release 2.0.0, Release 1.8.1 |
Components | iOS |
Labels | module_tableview, parity, qe-testadded |
Reporter | Alan Leard |
Assignee | Stephen Tramer |
Created | 2011-12-13T14:15:13.000+0000 |
Updated | 2012-10-10T23:37:32.000+0000 |
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
Fixed on master with PR#997
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
Reopening and closing this issue to update label and Fix Version field.