[TIMOB-8417] iOS: Textfield in a scrollview scrolls if bluetooth keyboard is connected to iPad
GitHub Issue | n/a |
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-04-13T14:29:39.000+0000 |
Affected Version/s | Release 1.8.2 |
Fix Version/s | Release 2.0.2, Release 2.1.0, Sprint 2012-08 |
Components | iOS |
Labels | SupportTeam, api, qe-port |
Reporter | Varun Joshi |
Assignee | Max Stepanov |
Created | 2012-03-29T11:17:54.000+0000 |
Updated | 2012-05-17T15:58:19.000+0000 |
Description
Code
Please test on the iPad device
{noformat}
var win = Ti.UI.createWindow({
backgroundColor:'white'
});
var field = Ti.UI.createTextField({
hintText: 'password',
color:'#666',
width:'94%',
left: '3%',
top: 140,
width: '50%',
height: 45,
borderRadius:0,
borderStyle:Titanium.UI.INPUT_BORDERSTYLE_BEZEL,
passwordMask: true
});
var scroll = Ti.UI.createScrollView({
left: 11,
top: 12,
width: 433,
height: 390,
contentHeight:'auto',
contentWidth: 'auto',
});
scroll.add(field);
win.add(scroll);
win.open();
{noformat}
Expected Behavior
Clicking on the textField should not scroll it up when a bluetooth keyboard is connected to the iPad.
Actual Behavior
On connecting the keyboard and clicking on the textfield, the textfield scrolls up as if the soft keyboard is present.
Comments
JSON Source
PR pending https://github.com/appcelerator/titanium_mobile/pull/1976
Tested with 2.0.2.v20120514121649 on iPad 3 5.1.1