PASS: The text field (and keyboard) rotate and position appropriately.
FAIL: The text field renders behind the nav bar.
*NOTE:* This may affect any window with a nav bar, not just modals.
Titanium.UI.setBackgroundColor('#000');
var win1 = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff',
navBarHidden:false
});
win1.orientationModes=[
Titanium.UI.PORTRAIT,
Titanium.UI.LANDSCAPE_LEFT,
Titanium.UI.LANDSCAPE_RIGHT];
var flexSpace = Titanium.UI.createButton({
systemButton:Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE
});
var done=Titanium.UI.createButton({
systemButton:Titanium.UI.iPhone.SystemButton.DONE,
backgroundColor:'#44648E',
backgroundImage:'none'
});
var textField = Titanium.UI.createTextField({
color:'#385487',
right:'3.1%',
left:'3.1%',
top:10,
borderStyle:Titanium.UI.INPUT_BORDERSTYLE_NONE,
border:0,
height:44,
borderColor: '#000000',
backgroundColor: 'transparent',
font:{fontSize:17,fontFamily:'Helvetica Neue'},
returnKeyType:Titanium.UI.RETURNKEY_DONE,
keyboardType:Ti.UI.KEYBOARD_NUMBER_PAD,
keyboardToolbar:[flexSpace,flexSpace,done],
});
done.addEventListener('click',function(e){
textField.blur()
});
win1.add(textField);
win1.open({modal:true});
Issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 iOS iPhone Simulator: iOS SDK version: 6.0
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.v20170620103414 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