[TIMOB-27236] iOS: Animating view width/height from 0 doesn't work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2021-06-15T08:43:08.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 10.0.1 |
Components | iOS |
Labels | animate, animation, ios, view |
Reporter | ACI Informatica |
Assignee | Joshua Quick |
Created | 2019-06-11T10:14:16.000+0000 |
Updated | 2021-06-15T08:43:08.000+0000 |
Description
*Problem*
Animating View height/width from 0 doesn't work on iOS.
*Test case*
Execute below code
View height remains 0 and no animation is present.
$.win.open();
function onClick() {
$.v1.animate({ duration: 500, height: 200 });
}
<Alloy>
<Window id="win">
<View id="v1"/>
<Button id="btn" onClick="onClick" />
</Window>
</Alloy>
"#win": {
backgroundColor: 'white'
}
"#v1": {
height: 0,
width: 200,
backgroundColor: 'red'
}
"#btn": {
height: 40,
width: 260,
bottom: 48,
backgroundColor: 'green',
title: 'Animate'
}
Attachments
File | Date | Size |
---|---|---|
AnimationSizeTest.js | 2021-05-21T21:31:02.000+0000 | 766 |
Hello [~vijaysingh], Can you please look into this issue? It's reproducible using the latest SDK 8.0.2.GA. Thank you.
[~sdarda] A quick workaround is - Set view's (v1) initial height/width > 0. e.g .0001, which is practically ~0.
PR (master): https://github.com/appcelerator/titanium_mobile/pull/12832
Merged to master
10_0_X PR merged