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

iOS:Remote Images inside a vertical ScrollView not scaling properly

    Details

      Description

      When trying to add an imageView to a scrollView with a vertical layout, the imageView has a height that is much larger than the image that is displayed. The image is being scaled and displayed but there is a white blank space displayed above, below and around the image. It works fine on Android.

      Steps to reproduce:

      1.Load the below app.js
      2.Run on a iOS Simulator/Device
      3.Run the same on Android Device

      Expected: There should be no space above the image like in android.

      Actual Behavior: There is some empty space above and below the image

      app.js:

      var detailWindow = Titanium.UI.createWindow({
      	backgroundColor : '#fff'
      });
       
      var detailScrollView = Ti.UI.createScrollView({
      	layout : 'vertical'
      });
       
      var imageView = Ti.UI.createImageView({
      	image : "https://s3.amazonaws.com/static.tumblr.com/6t3upxl/Aawm08w0l/khout-kitten-458882.jpeg",
      	top : '10dp'
       
      });
       
      detailScrollView.add(imageView);
       
      detailWindow.add(detailScrollView);
       
      detailWindow.open(); 
       
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vduggal Vishal Duggal (Inactive)
                Reporter:
                aakkinepally Amuktha Akkinepally
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration