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

iOS: Changing height of a view with animations not working

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Release 4.1.1
    • Fix Version/s: None
    • Component/s: iOS
    • Labels:
    • Environment:

      Description

      Expected behavior: The animation on the view should make the view appear to shrink to a height of 0.

      Actual behavior: Expected behavior only happens for the last child view in a vertical layout view. All other views simply disappear with no animation.

      Test Case

      var win = Ti.UI.createWindow({
          backgroundColor: 'white',
          layout: 'vertical'
      });
       
      for (var i = 0; i < 10; i++) {
          newRow = createRow();
          win.add(newRow);
      }
       
      function createRow() {
          var row = Ti.UI.createView({
              height: 45,
              width: Ti.UI.FILL,
              top: 1,
              backgroundColor: 'black'
          });
          row.addEventListener('click', function(e) {
              row.animate({
                  height: 0,
                  duration: 2000
              });
          });
          return row;
      }
       
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dplunkett3 Daniel Plunkett
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-20365
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code