Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23178] Inconsistent path handling Android / iOS - Live View On / Off

GitHub Issuen/a
TypeStory
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsinconsistency, liveview, path, relative
Reportercarlo
AssigneeUnknown
Created2016-04-08T13:39:54.000+0000
Updated2018-02-28T19:55:45.000+0000

Description

Paths to *images* and *dbs* are always absolute on iOS, on Android behaviour depends on Liveview, when distributing the app paths are relative to script file. Attached screenshot and a test app. app.js
require('folder/script');
folder/script
var win = Ti.UI.createWindow({layout:'vertical'});
win.add(Ti.UI.createLabel({
	top:16,
	text:'/image.png'
}));
win.add(Ti.UI.createImageView({
  image:'/image.png'
}));
win.add(Ti.UI.createLabel({
	text:'image.png'
}));
win.add(Ti.UI.createImageView({
  image:'image.png'
}));
win.open();

Attachments

FileDateSize
Android.png2016-04-08T13:38:05.000+000048095
Android liveview.png2016-04-08T13:39:39.000+000048835
iOS.png2016-04-08T13:38:06.000+0000162938
iOS liveview.png2016-04-08T13:39:39.000+0000163322
Pathtest.rar2016-04-08T13:38:58.000+000080851

Comments

No comments

JSON Source