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

Android: Remote Images inside a vertical ScrollView not scaling properly (only seen after closing and reopening the app couple of times)

    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,thought the top is set as '10dp'. It works fine when the app is loaded for the first time.

      Steps to reproduce:

      1.Load the below app.js
      2.Run it on Android Device (4.1)
      3.Close and re-open the app by just tapping on the home.
      4.After doing it for 4 - 5 times on an average you can see that the height is set to 10dp anymore.

      Expected: There should be no space above the image, no matter how many times we launch the app.

      Actual Behavior: There is some empty space above and below the image after folding and re-opening the app couple of times.

      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:
                ayeung Allen Yeung
                Reporter:
                aakkinepally Amuktha Akkinepally
                Reviewer:
                Hieu Pham
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration