Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23809] iOS: Relative images paths are not relative to Resources dir, not current JS file

GitHub Issuen/a
TypeBug
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 6.1.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterChris Barber
AssigneeUnknown
Created2016-08-23T22:04:39.000+0000
Updated2018-08-31T22:05:31.000+0000

Description

TIMOB-7004 states there there is a bug in Android where relative images are not loading correctly, however it's the opposite. The images are loading in iOS when they should not be. In TIMOB-7004 test case, app.js will require('ui/homeView.js') which creates an ImageView with a relative path. On Android, an image path of commonimages/home-home.png will try to load ui/commonimages/home-home.png. On iOS, it appears to treat relative image paths as absolute paths, which is not correct.

Comments

  1. Ewan Harris 2016-08-23

    Windows behaviour appears to match that of iOS, in that it will load the images. Windows 10 Pro Ti SDK:6.1.0.v20160823150730 Nokia Lumia 930 10.0 !http://puu.sh/qM0ZH/e0bcc7a1c9.jpg!

JSON Source