Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9785] Android: View:Pinching in to a large size makes view to disappear

GitHub Issuen/a
TypeBug
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 2.1.0, Release 3.1.0
Fix Version/sn/a
ComponentsAndroid
Labelsapi, qe-and060112, qe-nfc, reprod
ReporterShyam Bhadauria
AssigneeUnknown
Created2012-06-25T04:22:58.000+0000
Updated2018-02-28T20:03:54.000+0000

Description

Feature not supported in 2.0.2. Steps to reproduce: 1) Use the code below
var win = Titanium.UI.createWindow();
win.backgroundColor = '#fff';
		 
		var view = Ti.UI.createView({
		    height: 250,
		    width: 250,
		    backgroundColor: '#a00'
		});
		 
		view.addEventListener('pinch', function(e) {
		    view.height = baseHeight * e.scale;
		    view.width = baseWidth * e.scale;
		});
		
		view.addEventListener('touchstart', function(e) { 
		    baseHeight = view.height;
		    baseWidth = view.width;
		});
		 
win.add(view);
win.open();
2) Run the app 3) Keep on pinching to zoom in the displayed red view. Expected result: 3) After step 3, the view should get bigger in size and stop at some particular maximum size. Actual result: 3) After step 3, the view continues to get bigger in size but disappears completely once it reaches a certain high value(9999999*9999999).

Comments

  1. Shameer Jan 2013-02-28

    The problem can reproduce with release 3.0.2 and master release 3.1.0 Titanium Studio, build: 2.1.2.201208301612 Titanium SDK version: 3.1.0 (28/02/2013) Titanium SDK version: 3.0.2 (28/02/2013) Device: Samsung galaxy s duos Android version: 4.0.4
  2. Lee Morris 2017-06-27

    I am able to reproduce this issue with the following environment; Pixel (7.1) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170623141152 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131

JSON Source