[AC-2058] Scroll doesn't work for consequent view if I don't animate the current view (during the initial animation)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2013-02-07T00:26:20.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy, Titanium SDK & CLI |
Labels | n/a |
Reporter | Oleg Polyakov |
Assignee | Mauro Parra-Miranda |
Created | 2012-12-21T18:27:54.000+0000 |
Updated | 2016-03-08T07:41:01.000+0000 |
Description
Why do I have animate current view for the consequent view to have a scroll event working? I know the question might sound confusing, so I am adding the code that does the trick. My $.checkin view has a scrollview that wouldn't scroll if I would simply add it to main window and move to left=0.
function loadCheckin(category){
$.checkin = Alloy.createController('checkin');
mainWindow.add($.checkin.container);
$.checkin.container.left = 639;
$.mainContainer.animate({left:0, duration:0},function(){$.checkin.container.animate({left:0, duration:200});});
$.checkin.loadPage(category);
}
Closing due ot lack of info. If a reproducible test case is included then I'll reopen.