[TIMOB-9438] iOS: ScrollView-Image disappers when Zooming factor is set Zero or less
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-06-07T12:57:58.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | api, qe-ios060112 |
Reporter | Neha Chhabra |
Assignee | Neeraj Gupta |
Created | 2012-06-07T03:57:43.000+0000 |
Updated | 2014-07-17T10:13:38.000+0000 |
Description
Image disappears when its Zooming factor value is set to zero or less
This is not a regression.It even happens on 2.0.2
Steps to reproduce:
1. Run the below sample code on device.
2. Pinch and Zoom the Picture
Sample code 1
var _window=Ti.UI.createWindow ({
backgroundColor : 'black'
})
var photosView = Ti.UI.createScrollableView({
backgroundColor:'black',
width : 320,
height : 450,
showPagingControl:true,
pagingControlHeight:20,
});
var imgArray = [];
var img1 = Ti.UI.createImageView({
image:'http://media.koreus.com/200606/1image-illusion-optique14-mini.jpg'
});
var imgWrapper = Ti.UI.createScrollView({
maxZoomScale:0.0,
});
imgWrapper.add(img1);
imgArray.push(imgWrapper);
photosView.views = imgArray;
photosView.views = imgArray;
_window.add(photosView);
_window.open();
Expected Result:
Should be able to zoom and pinch the picture without any errors
Actual Result:
Image disappears.
Setting a zoomScale of 0 will make all content disappear. It is not a bug.