MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / onWidthHeight

Method onWidthHeight

apps/ui/src/layouts/myview.ts:10–17  ·  view source on GitHub ↗
(args: { eventName: string; object: any })

Source from the content-addressed store, hash-verified

8
9 // View properties
10 public onWidthHeight(args: { eventName: string; object: any }): void {
11 var view: View = <View>args.object;
12 if (view.width !== 30) {
13 super.setWidthHeight(view, 105, 55);
14 } else {
15 super.setWidthHeight(view, 0, 0);
16 }
17 }
18
19 public onMinWidthMinHeight(args: { eventName: string; object: any }): void {
20 var view: View = <View>args.object;

Callers

nothing calls this directly

Calls 1

setWidthHeightMethod · 0.80

Tested by

no test coverage detected