Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1303] borderWidth=0 breaks view animation

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDuplicate
Resolution Date2014-05-12T05:33:17.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterFix Please
AssigneeRitu Agrawal
Created2014-05-08T14:02:06.000+0000
Updated2016-03-08T07:37:42.000+0000

Description

*If view borderWidth is set to zero, the view is being decreased and finally disappears instead of moving.* See the video attached. I've managed to recreate the issue on both emulator and device (Samsung GT-N8000 / Android 4.1.2). Btw, note the weird black square at the end of the video. Perhaps it's another bug. But I can't recreate it on the device though.
<Alloy>
  <Window>
    <Button left="3" top="3" onClick="onButton">Start Animation</Button>
  </Window>
</Alloy>
$.index.open();

var view = Ti.UI.createView({
    backgroundColor : 'green',
    borderWidth : 0,
    width : 100,
    height : 100,
    left : 10,
    top : 50,
  }); 

$.index.add(view);

function onButton(e) {
  var animation = Ti.UI.createAnimation({
    duration : 10000,
    left : 500,
  });

  view.animate(animation);
}

Attachments

FileDateSize
animationtest.avi2014-05-08T14:02:06.000+00003097246

Comments

  1. Fix Please 2014-05-08

    Seems, *borderColor: 'transparent'* causes exactly the same issue. And I've just recreated the issue on *Samsung GT-S7562 / Android 4.0.4*.
  2. Ritu Agrawal 2014-05-09

    Resolving this ticket as a duplicate of TIMOB-16773. Please track that ticket for further updates.

JSON Source