Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2328] Animating from 640 would never show the animated view, but works with 639

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2013-04-05T19:55:52.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy, Titanium SDK & CLI
Labelsn/a
ReporterOleg Polyakov
AssigneeShak Hossain
Created2012-12-21T18:20:26.000+0000
Updated2016-03-08T07:41:20.000+0000

Description

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); }

Comments

  1. Tony Lukasavage 2013-02-07

    This likely is not an Alloy-specific issue, assigning to Ingo so platform can assess.
  2. Davide Cassenti 2013-04-05

    Hello, I tried to create a similar scenario, but I cannot reproduce the problem. I think you should share the code of your controller, in order to understand what exactly is going on. Also, why are you running a 0ms animation on the mainContainer? What exactly is mainContainer? Thanks
  3. Shak Hossain 2013-12-07

    We have not heard back from you since you posted the issue. Not sure if this is still throwing error in your app. If so, please send us a complete test case so that we can take next necessary step to fix. Your sample is missing some components. If you can upload those, we will re-test and provide you our feedback.
  4. Mostafizur Rahman 2013-12-30

    We are unable to reproduce the reported error with the latest TISDK. Here is the code sample we used to test.

    Test Environment:

    MAC OS X 10.8.5 Ti SDK 3.2.0.GA IOS Simulator 7.0.3 Ti CLI 3.2.0 Alloy 1.3.0 Android 2.3.3, 4.2.2

    Test Code

    index.js
       	function doClick(e)
       	{
       		if (e.source.toggle == true) {
       			$.view.animate({
       				left : 0,
       				duration : 400,
       				curve : Ti.UI.ANIMATION_CURVE_EASE_IN_OUT
       			});
       			e.source.toggle = false;
        
       		} else {
       			$.view.animate({
       				left : 640,
       				duration : 400,
       				curve : Ti.UI.ANIMATION_CURVE_EASE_IN_OUT
       			});
       			e.source.toggle = true;
        
       		}
       	}
        
       $.index.open();
       
    index.xml
       <Alloy>
       	<Window class="container" backgroundColor="red">
       		<View id="view" backgroundColor="gray"height="100" width="200" left="0" top='5'>
       			<Label>
       				Animating 0 to 640
       			</Label>
       		</View>
       		<Button id="ok" height="Ti.UI.SIZE" width="Ti.UI.SIZE" top="200" toggle='false' onClick="doClick">
       			animation
       		</Button>
       	</Window>
       </Alloy>
       
    Thanks
  5. Shak Hossain 2013-12-31

    Since the issue is not reproducible anymore, closing it.

JSON Source