[TIMOB-15084] iOS7: Orientation: Changing orientation of app to landscape, Window leaves black bar to left and right side.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2013-09-09T22:12:33.000+0000 |
Affected Version/s | Release 3.1.3 |
Fix Version/s | 2013 Sprint 19, 2013 Sprint 19 API |
Components | iOS |
Labels | ios7, qe-3.1.3 |
Reporter | Paras Mishra |
Assignee | Sabil Rahim |
Created | 2013-09-09T12:16:20.000+0000 |
Updated | 2017-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
File | Date | Size |
---|---|---|
Landscape_iOS6.png | 2013-09-09T12:16:20.000+0000 | 112247 |
Landscape_iOS7.png | 2013-09-09T12:16:20.000+0000 | 153456 |
Closing as invalid.