Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11830] MobileWeb: 'bottom' property not properly set switching between windows with different "navBarHidden" values.

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2017-06-26T22:24:00.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMobileWeb
LabelsSupportTeam
ReporterDavide Cassenti
AssigneeChris Barber
Created2012-11-20T11:17:41.000+0000
Updated2018-04-04T23:20:38.000+0000

Description

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.

Comments

  1. Lee Morris 2017-06-26

    Resolving as "Won't Fix" as MobileWeb has been deprecated.
  2. Eric Merriman 2018-04-04

    Closing as will not fix.

JSON Source