[TIMOB-1986] iOS: Window properties ignored when url specified
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-06-07T23:48:34.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | api |
Reporter | Angus Peart |
Assignee | Ingo Muschenetz |
Created | 2011-04-15T03:07:22.000+0000 |
Updated | 2017-06-07T23:48:34.000+0000 |
Description
The Bug
This problem has been pointed out in Q&A here http://developer.appcelerator.com/question/39891/createbutton-and-backgroundimage">
http://developer.appcelerator.com/question/39891/createbutton-and-b...
The bug really needs fixing, it's nearly impossible to track down
this bug. I can't see any reason it should exist.
Reproducing
When using the following code the background image is shown
correctly.
var mainWin = Ti.UI.createWindow({
//Always ignored -> backgroundImage:'images/main_background.png',
url: 'javascripts/main.js'
});
mainWin.open();
When a trailing slash is added to the url property, the
backgroundImage fails to load.
var mainWin = Ti.UI.createWindow({
//Always ignored -> backgroundImage:'images/main_background.png',
url: '/javascripts/main.js'
});
mainWin.open();
In both instances the main.js file is loading
correctly, as indicated by the backgroundColor change (contents of
main.js below)
var win = Ti.UI.currentWindow;
win.backgroundColor = '#ffffff';
Notes
In all cases, the backgroundImage property is ignored in the Ti.UI.createWindow() method.
iOS SDK: 4.0 and 4.1
Titanium Mobile: 1.4.1.1
Attachments
File | Date | Size |
---|---|---|
resources.zip | 2011-04-15T03:07:23.000+0000 | 118873 |