[AC-1303] borderWidth=0 breaks view animation
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Duplicate |
Resolution Date | 2014-05-12T05:33:17.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Fix Please |
Assignee | Ritu Agrawal |
Created | 2014-05-08T14:02:06.000+0000 |
Updated | 2016-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
File | Date | Size |
---|---|---|
animationtest.avi | 2014-05-08T14:02:06.000+0000 | 3097246 |
Seems, *borderColor: 'transparent'* causes exactly the same issue. And I've just recreated the issue on *Samsung GT-S7562 / Android 4.0.4*.
Resolving this ticket as a duplicate of TIMOB-16773. Please track that ticket for further updates.