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

iOS: ImageView with scaled image, auto leaves padding

    Details

      Description

      If you create an ImageView with a fixed width and auto for height, if the image is being scaled, then the height seems to leave padding on top and bottom, see screen shot: http://screencast.com/t/OlO2t6WIw

      Here is test code:

      var win = Ti.UI.createWindow({backgroundColor:'#fff'});
       
      var image = Ti.UI.createImageView({
      	image: "image165.jpg",
      	left: 0,
      	top : 0,
      	width : '165',
      	height : 'auto',
      	backgroundColor : "red"
      });
       
      win.add(image);
      win.open();
      

      Here is a link to the image that is 201x105: http://www.catravelservices.com/management/hotels/pictures/Mawamba_lodge_nature.jpg

      HD Ticket Reference: http://appc.me/c/APP-297864

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vduggal Vishal Duggal (Inactive)
                Reporter:
                aleard Alan Leard
              • Watchers:
                0 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code