Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Invalid
    • Affects Version/s: None
    • Component/s: Alloy, Titanium SDK & CLI
    • Labels:
    • Environment:

      Ti SDK 6.0.1.GA, Alloy 1.9.5, iOS Simulator 10.1

      Description

      Animating to '0dp' and back to '40dp' will not work (tested only on iOS).

      Testcase

      Create a new project using `appc new -n mytestproj` and paste the following snippets:

      index.js

       
      function fadeIn(element) {
          element.animate({
              height: 40
          });
          console.log('FADEIN');
      };
       
      function fadeOut(element) {
          element.animate({
              height: 0
          });
          console.log('FADEOUT');
      };
       
      setTimeout(function() {
          fadeOut($.my_view_reference);
      }, 2000);
       
      setTimeout(function() {
          fadeIn($.my_view_reference);
      }, 4000);
       
       
      $.index.open();
      

      index.xml

      <Alloy>
      	<Window class="container">
      		<View id="my_view_reference" height="50dp">
      			<Label text="Some text" right="50dp"></Label>
      			<Switch width="50dp"></Switch>
      		</View>
      	</Window>
      </Alloy>
      

        Attachments

          Activity

            People

            • Assignee:
              shossain Shak Hossain
              Reporter:
              uzbbert Bert
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code