Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7863] iOS: Keyboard displayed over modal causes render issues on rotate

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2017-06-22T21:36:49.000+0000
Affected Version/sRelease 2.0.0, Release 3.1.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterStephen Tramer
AssigneeEric Merriman
Created2012-03-02T11:31:07.000+0000
Updated2017-06-22T21:36:49.000+0000

Description

Testing

----

Click text field to display keyboard

Rotate to landscape

Rotate to portrait

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});

Comments

  1. Shameer Jan 2013-04-04

    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
  2. Lee Morris 2017-06-22

    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

JSON Source