Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2797] iOS: UI - Email/SMS Dialog does not change orientation properly

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2012-01-10T08:21:42.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterNiel Vanterpool
AssigneePaul Dowsett
Created2012-01-05T10:01:31.000+0000
Updated2016-03-08T07:47:43.000+0000

Description

Problem

Email dialog orientation change does not change orientation of status bar and keyboard.

Test case

// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');

// create tab group
var tabGroup = Titanium.UI.createTabGroup();


//
// create base UI tab and root window
//
var win1 = Titanium.UI.createWindow({  
    title:'Tab 1',
    backgroundColor:'#fff'
});
var tab1 = Titanium.UI.createTab({  
    icon:'KS_nav_views.png',
    title:'Tab 1',
    window:win1
});

var label1 = Titanium.UI.createLabel({
	color:'#999',
	text:'I am Window 1',
	font:{fontSize:20,fontFamily:'Helvetica Neue'},
	textAlign:'center',
	width:'auto'
});

var button = Ti.UI.createButton({
	title:'Email',
	height:40
});
button.addEventListener('click', function(){
	var emailDialog = Ti.UI.createEmailDialog();
	emailDialog.open();
});

win1.add(label1);
win1.add(button);
//
// create controls tab and root window
//
var win2 = Titanium.UI.createWindow({  
    title:'Tab 2',
    backgroundColor:'#fff'
});
var tab2 = Titanium.UI.createTab({  
    icon:'KS_nav_ui.png',
    title:'Tab 2',
    window:win2
});

var label2 = Titanium.UI.createLabel({
	color:'#999',
	text:'I am Window 2',
	font:{fontSize:20,fontFamily:'Helvetica Neue'},
	textAlign:'center',
	width:'auto'
});

win2.add(label2);



//
//  add tabs
//
tabGroup.addTab(tab1);  
tabGroup.addTab(tab2);  


// open tab group
tabGroup.open();

// 

Attachments

FileDateSize
iOS Simulator - iPhone - iOS 5.0 (9A334).png2012-01-05T10:01:31.000+0000192707
TestApp.zip2012-01-06T20:41:06.000+00002319767

Comments

  1. Paul Dowsett 2012-01-05

    Thanks for raising this ticket, Niel In order for me to escalate it to the core team, all the fields must be complete. Please check it against the [JIRA Ticket Checklist](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist), and add any missing information. For the description, you can use [this template](https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template) as a starting point. Furthermore, we must be able to reproduce the issue in order to accept it, and so a test case must be included and run without modification, as per the [Creating a Test Case](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-CreatingaTestCase) section. Thanks in advance for your cooperation. Cheers
  2. Niel Vanterpool 2012-01-06

    Paul, I have added the few lines of code that will produce the results I am seeing with 1.8.x. All that has to be done is create a new mobile project and add in the lines of code to create an email dialog. Once the device is changed to landscape, the window and keyboard do not behave as expcted. There are no errors in the console to the report.
  3. Paul Dowsett 2012-01-06

    Niel By not testing your script and ensuring that it runs without modification, it delays the time it takes to get to the engineers. I'd appreciate it if you would test your script, and update it if it does not run. Thanks
  4. Niel Vanterpool 2012-01-06

    I've attached a zip file containing the code. Run simulator or install on device, run application, click on email to launch email dialog, and change orientation to landscape to observe results. Use keyboard and notice that the keyboard and status bar do not behave as expected.
  5. Paul Dowsett 2012-01-10

    Niel The test case you have provided works as expected for me. Please open a thread in the [Q&A](http://developer.appcelerator.com/questions/created) to verify this with the community, and provide a link to it here, in accordance with our [The Bug-Reporting Lifecycle](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-TheBugReportingLifecycle). Thank you
  6. Niel Vanterpool 2012-01-10

    Paul, Please see thread in the Q&A at http://developer.appcelerator.com/question/130482/emailsms-dialog-do-not-display-properly-on-orientation-change-ti-18--ios.
  7. Paul Dowsett 2012-01-10

    See Gergely's response to your Q&A. Always consult the community before raising further tickets - we have some really good people there! ;) Cheers
  8. Niel Vanterpool 2012-01-10

    Hi Paul, If inconsistencies are found, should I open another ticket?

JSON Source