Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6977] iOS:ScrollableView Zoom in ScrollableView is not working in 1.8

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2012-02-10T00:03:44.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sn/a
ComponentsiOS
Labelsregression
ReporterMauro Parra-Miranda
AssigneeBlain Hamon
Created2012-01-04T12:42:07.000+0000
Updated2012-02-10T00:03:44.000+0000

Description

PROBLEM

Zoom used to work inside a ScrollableView, with 1.7.5. The same code doesn't work (doesn't zoom) in 1.8.

TESTCASE

Test this code in 1.7.5, do a zoom. Works fine. Do the same with 1.8, won't work.
var win = Ti.UI.createWindow({
    backgroundColor: 'black'
});
 var photosView = Ti.UI.createScrollableView({
    backgroundColor:'black',
    width : 320,
    height : 450,
    showPagingControl:true,
    pagingControlHeight:20,
    maxZoomScale : 2.0,
});
var imgArray = [];
var img1 = Ti.UI.createImageView({
    image:'http://media.koreus.com/200606/1image-illusion-optique14-mini.jpg'
});
imgArray.push(img1);
photosView.views = imgArray;
win.add(photosView);
win.open();

Community Discusion

http://developer.appcelerator.com/question/130153/image-zoom-not-working-after-update-to-sdk-18

Comments

  1. Blain Hamon 2012-01-18

    The removal of having these extra scrollviews (What provide the pinch and zoom) was a design decision for 1) parity with Android and 2) performance. If the end developer wants pinch and zoom, they must ask for it explicitly by using a scrollview inside a scrollable view.
  2. Thomas Huelbert 2012-01-23

    as per Blain, this is now expected behavior. Closing.

JSON Source