[TIMOB-10798] MobileWeb: Titanium.UI.Window.open parameters ignored on Mobile Web platform
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2017-06-26T19:09:36.000+0000 |
Affected Version/s | Release 2.1.2 |
Fix Version/s | n/a |
Components | MobileWeb |
Labels | parity |
Reporter | Benjamin Hatfield |
Assignee | Chris Barber |
Created | 2012-09-06T11:20:08.000+0000 |
Updated | 2018-04-04T23:20:39.000+0000 |
Description
The Titanium.UI.Window.open() parameters are accepted and applied on the Android and iOS platforms. On the Mobile Web platform, they are ignored but work with Ti.UI.createWindow(). See code below for accepted parameters. Some are platform specific.
Reproduction:
Run the sample code below for the mobile web platform--either browser or emulator.
Expected Results:
Mobile Web platform should accept the parameters in the open method and apply them.
Actual Results:
Running on the emulator, either the parameters are ignored or the browser displays 'File /index.html not found' depending if other parameters are defined.
Running on the browser, the parameters are ignored.
var win1 = Ti.UI.createWindow({
width: '100%',
height: '100%',
backgroundColor: 'white'
});
var btn1 = Ti.UI.createButton({
top: 0,
left: 0,
width: 100,
height: 50,
title: 'open'
});
btn1.addEventListener('click', openWindow);
win1.add(btn1);
win1.open();
function openWindow() {
var win2 = Ti.UI.createWindow({
backgroundColor: 'red',
orientation: Ti.UI.LANDSCAPE_LEFT,
});
var btn2 = Ti.UI.createButton({
top: 0,
left: 0,
width: 100,
height: 50,
title: 'close'
});
btn2.addEventListener('click', function(e){
win2.close();
});
win2.add(btn2);
win2.open({
width: 250,
height: 250,
modal: true
});
//Other parameters
//navBarHidden: true,
//animated: false,
//modal: true,
//fullscreen: true,
//top:25,
//left:25,
//right:25,
//bottom:25,
//width: 250,
//height: 250,
//transition: Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_RIGHT, // - ios only
//modalStyle: Titanium.UI.iPhone.MODAL_PRESENTATION_FULLSCREEN, // - ios only
//modalTransitionStyle: Titanium.UI.iPhone.MODAL_TRANSITION_STYLE_CROSS_DISSOLVE, // - ios only
}
Marking ticket as "Won't Fix" as MobileWeb has been deprecated.
Closing as will not fix.