[TIMOB-5157] iPad: barImage does not change when orientation changes
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2017-07-27T18:00:30.000+0000 |
Affected Version/s | Release 1.7.2, Release 1.8.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | ios, ipad, navbar, tbs-1.9.0 |
Reporter | Vikramjeet Singh |
Assignee | Ingo Muschenetz |
Created | 2011-08-29T11:50:56.000+0000 |
Updated | 2017-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();
Closing due to inactivity. If this issue still exists, please raise a new ticket.