[TIMOB-11241] iOS 6: View:Pinching in to a large size makes view to disappear (if it contains label in it).
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2012-10-03T17:29:32.000+0000 |
Affected Version/s | Release 2.1.3 |
Fix Version/s | 2012 Sprint 21 API, 2012 Sprint 21 |
Components | iOS |
Labels | api, qe-ios090112, qe-ios6 |
Reporter | Shyam Bhadauria |
Assignee | Ingo Muschenetz |
Created | 2012-10-03T12:26:47.000+0000 |
Updated | 2013-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.
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