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

Windows: ImageView width Ti.UI.SIZE not working

    Details

    • Story Points:
      5
    • Sprint:
      2016 Sprint 16 SDK

      Description

      issue in 5_4_X 5.4.0.v20160802165655
      working fine on 5.3.0, but not on 5_4_X 5.4.0.v20160802165655

             var scrollView = Ti.UI.createScrollView({
      		top: 0,
      		left: 0,
      		right: 0,
      		bottom: 0,
      		backgroundColor: 'yellow',
      	});
      	var image = Ti.UI.createImageView({
      		image: '/icons/default.jpg',
      		left: 0,
      		top: 0,
      		bottom: 0,
      		width: '1000dp',
      		height: Ti.UI.FILL,
      		backgroundColor: 'green',
      	});
      	scrollView.add(image);
      	$.win.add(scrollView);
      	$.win.open();
      

      ImageView width Ti.UI.SIZE not working.

      Test Code

      var win = Ti.UI.createWindow({backgroundColor: 'purple'}),
          img = Ti.UI.createImageView({
              image: 'Logo.png',
              backgroundColor: 'red',
              left: 0,
              top: 0,
              bottom: 0,
              width: Ti.UI.SIZE,
              height: Ti.UI.SIZE
          });
      win.add(img);
      win.open();
      

      Expected

      Image should be visible

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              zozo4kin Zakhar Zhuravlev
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code