@@ -54,35 +54,39 @@ private class CollapsedBehaviour extends DataBehaviour {
54
54
// TODO: think about moving this to css animations... yuk.
55
55
if (_component .animatable ) {
56
56
if (_value ) {
57
- content .opacity = 0 ;
57
+ // content.opacity = 0;
58
58
var cy = content .height ;
59
59
var autoHeight = content .autoHeight ;
60
60
var animation = new AnimationBuilder (content , .3 , " ease" );
61
61
animation .setPosition (0 , " height" , cy , true );
62
62
animation .setPosition (100 , " height" , 0 , true );
63
+ /*
63
64
animation.setPosition(0, "opacity", 1, true);
64
65
animation.setPosition(100, "opacity", 0, true);
66
+ */
65
67
animation .onComplete = function () {
66
68
if (autoHeight ) {
67
- content .height = null ;
69
+ @ :privateAccess content ._height = null ;
68
70
}
69
71
content .hidden = _value ;
70
72
// _component.dispatch(new UIEvent(UIEvent.CHANGE));
71
73
}
72
74
animation .play ();
73
75
} else {
74
76
content .hidden = _value ;
75
- content .opacity = 0 ;
77
+ // content.opacity = 0;
76
78
var cy = content .height ;
77
79
var autoHeight = content .autoHeight ;
78
80
var animation = new AnimationBuilder (content , .3 , " ease" );
79
81
animation .setPosition (0 , " height" , 0 , true );
80
82
animation .setPosition (100 , " height" , cy , true );
83
+ /*
81
84
animation.setPosition(0, "opacity", 0, true);
82
85
animation.setPosition(100, "opacity", 1, true);
86
+ */
83
87
animation .onComplete = function () {
84
88
if (autoHeight ) {
85
- content .height = null ;
89
+ @ :privateAccess content ._height = null ;
86
90
}
87
91
// _component.dispatch(new UIEvent(UIEvent.CHANGE));
88
92
}
0 commit comments