Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-23178

Inconsistent path handling Android / iOS - Live View On / Off

    Details

    • Type: Story
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      Window 7 x64 / OSX 10.11 - Titanium SDK 5.2.2

      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

        1. Android.png
          Android.png
          47 kB
        2. Android liveview.png
          Android liveview.png
          48 kB
        3. iOS.png
          iOS.png
          159 kB
        4. iOS liveview.png
          iOS liveview.png
          159 kB
        5. Pathtest.rar
          79 kB

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              c3k carlo
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-9618
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration