Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-2561

Animating a view's position to a negative dimension fails

    Details

      Description

      Animating a view's position to a negative dimension doesn't work. The view is re-positioned, but with no animation as the following code demonstrates:

      var hidden = false;
       
      var win = Ti.UI.createWindow();
      var view = Ti.UI.createView({top:0,height:200});
      var button = Ti.UI.createButton({bottom:0,title:'Toggle'});
       
      button.addEventListener('click', function () {
        myView.animate(Ti.UI.createAnimation({
          duration: 2000,
          delay: 0,
          top: hidden ? 0 : -200
        }));
        hidden = !hidden;
      });
       
      win.add(view);
      win.add(button);
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              shossain Shak Hossain (Inactive)
              Reporter:
              fokkezb Fokke Zandbergen
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Integration