Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15084] iOS7: Orientation: Changing orientation of app to landscape, Window leaves black bar to left and right side.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2013-09-09T22:12:33.000+0000
Affected Version/sRelease 3.1.3
Fix Version/s2013 Sprint 19, 2013 Sprint 19 API
ComponentsiOS
Labelsios7, qe-3.1.3
ReporterParas Mishra
AssigneeSabil Rahim
Created2013-09-09T12:16:20.000+0000
Updated2017-03-03T22:01:00.000+0000

Description

iOS7: Orientation: Changing orientation of app to landscape, Keyboard stretches to left and right black bar. It works fine on iOS 6 device. Screen shot is attached. Steps to reproduce: 1. Run the App below.

var win = Ti.UI.createWindow({
    backgroundColor : 'blue'
});
win.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 : 30,
			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();
		});

		win.add(textField);

win.open();

2. Click on the textField. 3. Rotate the device to Landscape mode. Expected: Window with textfield should not leave any black bar on left and right side. Actual: Window with textfield leaves black bar on left and right side. Screen shot is attached for iOS7 and iOS 6 devices.

Attachments

FileDateSize
Landscape_iOS6.png2013-09-09T12:16:20.000+0000112247
Landscape_iOS7.png2013-09-09T12:16:20.000+0000153456

Comments

  1. Eric Merriman 2017-03-03

    Closing as invalid.

JSON Source