Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11241] iOS 6: View:Pinching in to a large size makes view to disappear (if it contains label in it).

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionWon't Fix
Resolution Date2012-10-03T17:29:32.000+0000
Affected Version/sRelease 2.1.3
Fix Version/s2012 Sprint 21 API, 2012 Sprint 21
ComponentsiOS
Labelsapi, qe-ios090112, qe-ios6
ReporterShyam Bhadauria
AssigneeIngo Muschenetz
Created2012-10-03T12:26:47.000+0000
Updated2013-03-27T22:30:50.000+0000

Description

This is not a regression. It exists as far as 2.1.1. This is an iOS 6 issue. It works fine on iPad iOS 5.1,iPHONE 3G S(iOS 5.0.1) and iPhone 4S(iOS 5.1) with xcode 4.5. It also works on simulator iOS 5.1/xcode 4.4.1. But issue occurs on iOS 6 with xcode 4.5 and 4.4.1. If the view is pinched in to a large size without label, it do not disappears. Steps to reproduce: 1. Use the code below in app.js
var win = Ti.UI.createWindow();
		
	 	win.backgroundColor = '#fff';
	    
	    var baseHeight = 250;
		var baseWidth = 250;
		 
		var view = Ti.UI.createView({
		    height: baseHeight,
		    width: baseWidth,
		    backgroundColor: '#a00'
		});
		
		var label = Ti.UI.createLabel({
		    text: baseWidth + ' x ' + baseHeight,
		    color: '#fff',
		    font: {
		        fontSize: 24,
		        fontWeight: 'bold'
		    }
		});
		
		view.add(label);
		win.add(view);
		 
		view.addEventListener('pinch', function(e) {
		    view.height = baseHeight * e.scale;
		    view.width = baseWidth * e.scale;
		    label.text = Math.round(view.width) + ' x ' + Math.round(view.height);
		});
		
		view.addEventListener('touchstart', function(e) { 
		    baseHeight = view.height;
		    baseWidth = view.width;
		});
		 
		win.open();
2. Launch the app and pinch in the view until it disappears Expected result: 2. It should not disappear Actual result: 2. It disappears on pinching in to large size.

Comments

  1. Vishal Duggal 2012-10-03

    A dimension of 1.1 billion x 1.1 billion is really large. On the bright side we could work till 1 billion x 1 billion

JSON Source