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

Method setMargins

apps/ui/src/layouts/myview-base.ts:42–47  ·  view source on GitHub ↗
(child: any, marginLeft: any, marginTop: any, marginRight: any, marginBottom: any)

Source from the content-addressed store, hash-verified

40 }
41
42 protected setMargins(child: any, marginLeft: any, marginTop: any, marginRight: any, marginBottom: any) {
43 child.marginLeft = marginLeft;
44 child.marginTop = marginTop;
45 child.marginRight = marginRight;
46 child.marginBottom = marginBottom;
47 }
48
49 protected setPaddings(child: any, paddingLeft: any, paddingTop: any, paddingRight: any, paddingBottom: any) {
50 child.marginLeft = paddingLeft;

Callers 4

onMarginsMethod · 0.80
onAllPropertiesMethod · 0.80
onMarginsMethod · 0.80
onAllPropertiesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected