Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-27236

iOS: Animating view width/height from 0 doesn't work

    Details

    • Story Points:
      1

      Description

      Problem
      Animating View height/width from 0 doesn't work on iOS.

      Test case

      1. Execute below code
      2. View height remains 0 and no animation is present.

      index.js

      $.win.open();
       
      function onClick() {
      	$.v1.animate({ duration: 500, height: 200 });
      }
      

      index.xml

      <Alloy>
      	<Window id="win">
      			<View id="v1"/>
      			<Button id="btn" onClick="onClick" />
      	</Window>
      </Alloy>
      

      index.tss

      "#win": {
      	backgroundColor: 'white'
      }
       
      "#v1": {
      	height: 0,
      	width: 200,
      	backgroundColor: 'red'
      }
       
      "#btn": {
      	height: 40,
      	width: 260,
      	bottom: 48,
      	backgroundColor: 'green',
      	title: 'Animate'
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jquick Joshua Quick
                Reporter:
                mobile@informatica.aci.it ACI Informatica
                Reviewer:
                Jan Vennemann
              • Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration