[TIMOB-1207] iOS: ScrollView after animation on iPhone
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-06-20T08:59:52.000+0000 |
Affected Version/s | Release 1.6.0, Release 3.0.0 |
Fix Version/s | Release 3.0.0 |
Components | iOS |
Labels | core, module_scrollview, qe-port, qe-testadded |
Reporter | wallneradam |
Assignee | Neeraj Gupta |
Created | 2011-04-15T02:46:40.000+0000 |
Updated | 2013-06-20T08:59:52.000+0000 |
Description
I found a bug in the latest version from github. When I try to animate to a scrollview or a view has a scrollview inside, the scrollview will not work.
This script works in the 1.3.2-RC1 and before.
Test script:
var w = Ti.UI.createWindow({});
scrollview = Ti.UI.createScrollView({
backgroundColor: "#909090",
contentHeight: 500,
top: 0
});
var v;
for (var i=0; i<4; i++) {
v = Ti.UI.createTextField({
color: '#000',
top: 150 + i * 40,
width: 250,
height: 40,
hintText: 'textField' + i,
borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED,
autocapitalization: Ti.UI.TEXT_AUTOCAPITALIZATION_NONE
});
scrollview.add(v);
}
w.open();
// w.add(scrollview); // This would work
w.animate({
view: scrollview,
transition: Ti.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT
}); // This doesn't work
Comments
- Stephen Tramer 2011-04-15
Animations should happen on window transitions, but.. this is still weird. Has something to do with op order where the animation occurs before the window opens?
- Stephen Tramer 2012-07-25 Valid in 2.2.0.f9e938d.
- Junaid Younus 2012-08-13 Tested on the iOS simulator using TiSDK 2.2.0v20120810194112, unable to reproduce the issue. Commenting/uncommenting the lines makes the app behave the same. Issue fixed, ticket closed.
- Evgenii Tcarev 2012-08-17 Verified fixed with: Titanium Studio, build: 2.1.1.201207271312 SDK version: 2.2.0.v20120817115712 SDK version: 2.1.2.v20120816171609 Devices: iPhone4s (5.0.1)
- Dhirendra Jha 2013-06-20 Reopening to update labels
- Dhirendra Jha 2013-06-20 Tested with: SDK:3.1.2.v20130619101604 Appcelerator Studio: 3.1.1.201306131423 OS: OSX 10.7.5 Device:iPad mini(v 6.0) Xcode: 4.6