Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5157] iPad: barImage does not change when orientation changes

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2017-07-27T18:00:30.000+0000
Affected Version/sRelease 1.7.2, Release 1.8.0
Fix Version/sn/a
ComponentsiOS
Labelsios, ipad, navbar, tbs-1.9.0
ReporterVikramjeet Singh
AssigneeIngo Muschenetz
Created2011-08-29T11:50:56.000+0000
Updated2017-07-27T18:00:30.000+0000

Description

Steps to recreate: Drop the following in to an app.js, and click the button. A modal window will pop up, then close itself after one second. Watch the nav bar, which will have KS_nav_ui.png set as its barImage (make sure this image is available). Repeat this a couple of times and then change the orientation of the iPad. Actual Result: barImage still would have the same position and size as it was in previos orientation. Expected Result: barImage should change its position and size according to the new orientation. Note: this would happen only for the first time. After the first time, the image changes according to the new orientation.
var windowProperties = {
    backgroundColor: '#fff',
    barImage: 'KS_nav_ui.png'
};
var tabGroup = Ti.UI.createTabGroup();
var win = Ti.UI.createWindow(windowProperties);
var openModal = Ti.UI.createButton({
    title: 'Watch the barImage, and click me',
    width: 250, height: 40, top: 20
});
openModal.addEventListener('click', function() {
    var modal = Ti.UI.createWindow(windowProperties);
    modal.open({ modal: true });
    setTimeout(function() {
        modal.close();
    }, 1000);
});
win.add(openModal);
tabGroup.addTab(Ti.UI.createTab({
    icon: 'KS_nav_views.png',
    window: win
}));
tabGroup.open();

Comments

  1. Lee Morris 2017-07-27

    Closing due to inactivity. If this issue still exists, please raise a new ticket.

JSON Source