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

Android: View changes size when animated with position change

    Details

      Description

      Problem Description

      When a View is animated (translated) using the simple Ti.UI.createAnimation(...) method AND the view contains a borderColor, the view changes its size during animation.

      Test Code

       
      Titanium.UI.setBackgroundColor('#000');
       
      var win1 = Titanium.UI.createWindow({
      	title : 'Tab 1',
      	backgroundColor : '#fff'
      });
       
      var slideView = Ti.UI.createView({
      	//borderColor : "#d4d4d4", //comment out this line to make the example work
      	width : 200,
      	height : 250,
      	right : 1,
      	top : 1,
      	backgroundColor : "#bbbbff"
      });
       
      win1.add(slideView);
      win1.open();
       
      setTimeout(function() {
      	var resultAnim = Ti.UI.createAnimation({
      		top : 200,
      		duration : 500
      	});
       
      	slideView.animate(resultAnim);
      }, 500); 
      

      Step to reproduces

      1. Create a new project
      2. Paste test code in app.js
      3. Now run on android Emulator/Device
      4. See screen, view animate ok
      5. Now add borderColor property in “slideView” view
      6. Run again

      Expected result

      View animation should be smooth and size will be same.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sunila Sunila
                Reporter:
                reinberger Thomas Reinberger
                Reviewer:
                Ping Wang
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration