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

Android: view (with borderwidth and child view) animated lead app to crash

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      Android OS 2.3
      Titanium SDK 2.1.x, 3.0.0

      Description

      Problem

      When move a view with borderwidth and the view has children by animation, app will crash.

      Repro sequence

      var window = Ti.UI.createWindow({
          backgroundColor : "#fff"
      });
       
      var box = Ti.UI.createView({
          width : 80,
          height : 50,
          backgroundColor : "#0f0",
          borderWidth : 2,
          layout : "vertical"
      });
       
      window.add(box);
       
      var lbl_name = Ti.UI.createLabel({
          top : 5,
          width : 150,
          height : Ti.UI.SIZE,
          text : "hello",
          color : "#000",
          textAlign : Ti.UI.TEXT_ALIGNMENT_CENTER
      });
      box.add(lbl_name);
       
      // Animation-Start
      var btn_start = Ti.UI.createButton({
          title : 'Start',
          bottom : 50,
          width : 200
      });
      btn_start.addEventListener('click', function() {
          var a1 = Titanium.UI.createAnimation();
          a1.top = 100;
          a1.left = 100;
          a1.duration = 1000;
          box.animate(a1);
       
      });
       
      window.add(btn_start);
       
      window.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bijuexalture Biju pm
                Reporter:
                lixinxin6666@yahoo.co.jp lixinxin
                Reviewer:
                Allen Yeung
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration