Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17746] iOS8: iPad SplitWindow - Everything Gets Lost Off Screen on Orientation Change (Regression)

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionCannot Reproduce
Resolution Date2016-12-31T14:44:47.000+0000
Affected Version/sRelease 3.4.0
Fix Version/sn/a
ComponentsiOS
LabelsSplitWindow, TCSupportTriage, iPad, orientationChange
ReporterSlim McKinsley
AssigneeEric Merriman
Created2014-09-18T02:41:33.000+0000
Updated2017-03-31T21:57:18.000+0000

Description

Problem Description

The entire screen goes blank after a few rotation changes. Run the attached app.js as iPad simulator and rotate left, rotate right a few times. The entire window is lost (goes blank) on rotation change.

Steps to reproduce

1. Create a new mobile project (classic titanium) 2. Paste this to app.js:
var tabGroup = Ti.UI.createTabGroup();
 
var tabWindow1 = Ti.UI.createWindow({
    backgroundColor: 'red'
});
 
var tabWindow2 = Ti.UI.createWindow({
    backgroundColor: 'pink'
});
 
tabWindow1.addEventListener('focus', function(e) {
    Ti.API.info('tabWindow1 FOCUS');
});
 
tabWindow1.addEventListener('blur', function(e) {
    Ti.API.info('tabWindow1 BLUR');
});
 
tabWindow2.addEventListener('focus', function(e) {
    Ti.API.info('tabWindow2 FOCUS');
});
 
tabWindow2.addEventListener('blur', function(e) {
    Ti.API.info('tabWindow2 BLUR');
});
 
var tab1 = Ti.UI.createTab({
    tintColor: 'black',
    title: 'Tab 1',
    window: tabWindow1
});
 
var tab2 = Ti.UI.createTab({
    tintColor: 'black',
    title: 'Tab 2',
    window: tabWindow2
});
 
tabGroup.addTab(tab1);
tabGroup.addTab(tab2);
 
 
var detailWindow = Ti.UI.createWindow({
    backgroundColor: 'gray'
});
 
var navWindow = Ti.UI.iOS.createNavigationWindow({
    window: detailWindow
});
 
var splitWindow = Ti.UI.iPad.createSplitWindow({
    detailView: navWindow,
    masterView: tabGroup,
});
  
splitWindow.addEventListener('visible',function(e){
    if (e.view == 'detail') {
        e.button.title = "Popover";
        detailWindow.leftNavButton = e.button;
    }
    else if (e.view == 'master') {
        detailWindow.leftNavButton = null;
    }
});
 
splitWindow.open();
3. Run it in device.

Attachments

FileDateSize
app.js2014-09-18T02:41:33.000+00001355

Comments

  1. Slim McKinsley 2014-10-01

    From my testing, it looks like this has been fixed in Ti SDK 3.4.0.GA, although this ticket is not updated to reflect that. Can QA please confirm?
  2. Beau Gibson 2014-10-01

  3. Hans Knöchel 2016-12-31

    Not reproducible using the refactored Ti.UI.iOS.SplitWindow these days.
  4. Lee Morris 2017-03-31

    Closing ticket as the issue cannot be reproduced anymore, with reference to the above comment.

JSON Source