Problem description
Zoomable images are not correctly displayed on latest 3.x CI
Description
Customer would like to replicate the zoomable image similar to the ios photos application, using 'zoomScale' properties for the containing scrollView.
The image should be centered and allow for zooming in. It works fine on 2.1.4 GA but on latest CI the image is cropped and not fully visible, also when zooming in.
Attaching screenshots.
Sample code:
var win1 = Titanium.UI.createWindow({
backgroundColor:'#fff'
});
var scrollView = Ti.UI.createScrollView({
maxZoomScale: 4.0,
minZoomScale:1.0,
zoomScale:1.0,
});
var imageView = Ti.UI.createImageView({
backgroundColor: 'pink',
width:'100%',
height:'100%',
image: 'http://www.naturewalls.org/wp-content/uploads/2010/06/mirror_lake_in_the_mountains_wallpaper.jpg'
});
scrollView.add(imageView);
win1.add(scrollView);
win1.open();
The imageView behavior on IOS was changed as part of TIMOB-3749. The image is not cropped. It is scaling to fit the given dimensions (100%x100%). TO replicate old behavior use the following code
Not a bug. Have provided code to replicate 2.1.X behavior
Closing based on comments above