mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
This reverts commit 8973a6febd.
This commit is contained in:
committed by
Martin Yankov
parent
2f3070c8cd
commit
66d631ebca
12
apps/app/ui-tests-app/animation/layout-stack-height.ts
Normal file
12
apps/app/ui-tests-app/animation/layout-stack-height.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import * as view from 'tns-core-modules/ui/core/view';
|
||||
|
||||
export function tapLabel(args) {
|
||||
const clicked: view.View = args.object;
|
||||
const graffiti = clicked as any;
|
||||
clicked.animate({
|
||||
height: graffiti.toggle ? 64 : 128,
|
||||
duration: 200,
|
||||
curve: 'easeOut'
|
||||
});
|
||||
graffiti.toggle = !graffiti.toggle;
|
||||
}
|
||||
Reference in New Issue
Block a user