Problem description
When opening different windows with different values for the navBarHidden property (e.g. first window has navBarHidden true, second window does not), the bottom property fails to be correctly calculated in the second window.
Steps to reproduce
Use this code to see the issue:
var firstWin = Ti.UI.createWindow({
navBarHidden : true, //comment out this line and the problem goes away
modal : true
});
var navGroup = Ti.UI.MobileWeb.createNavigationGroup({
window: firstWin
});
var secondWin = Ti.UI.createWindow();
var button = Ti.UI.createButton({
title : 'This is below the bottom of the screen',
height : '10%',
bottom : 0,
width : Ti.UI.FILL
});
secondWin.add(button);
var goButton = Ti.UI.createButton({
title : "go to second page"
});
goButton.addEventListener('click', function() {
navGroup.open(secondWin);
});
firstWin.add(goButton);
var containerWin = Ti.UI.createWindow();
containerWin.add(navGroup);
containerWin.open();
When clicking on the button in the first window, the second is open correctly, the navBar is shown, but the button is below the screen.
Resizing the window at that point solves the issue.
Resolving as "Won't Fix" as MobileWeb has been deprecated.
Closing as will not fix.