[TIMOB-2373] Android: Height and width animations have side effects
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-11-14T20:22:42.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | 2013 Sprint 23, 2013 Sprint 23 API, Release 3.2.0 |
Components | Android |
Labels | core, insight, module_animation, qe-closed-3.2.0, qe-testadded |
Reporter | Kevin Whinnery |
Assignee | Hieu Pham |
Created | 2011-04-15T03:18:07.000+0000 |
Updated | 2014-02-21T06:22:56.000+0000 |
Description
When attempting to animate height and width on a view in Android, there are some interesting side effects going on in the parent view. Here's an app.js to repro:
// Create application main window
var main = Ti.UI.createWindow({
backgroundColor:'#000'
});
var container = Ti.UI.createView({
height:300,
width:300,
backgroundColor:'#fff'
});
main.add(container);
var shifty = Ti.UI.createView({
top:10,
left:10,
height:200,
width:200,
backgroundColor:'#ff0000'
});
container.add(shifty);
var btn = Ti.UI.createButton({
title:'do it',
height:50,
width:100,
bottom:10
});
btn.addEventListener('click', function() {
shifty.animate({
height:50,
width:50,
duration:1500
});
});
main.add(btn);
main.open();
Attachments
File | Date | Size |
---|---|---|
droid3.png | 2013-10-23T18:22:01.000+0000 | 15976 |
samsung_s3.png | 2013-10-23T18:22:01.000+0000 | 28682 |
samsung_s4.png | 2013-10-23T18:22:01.000+0000 | 38249 |