(args: { eventName: string; object: any })
| 35 | } |
| 36 | |
| 37 | public onAllProperties(args: { eventName: string; object: any }): void { |
| 38 | let child; |
| 39 | let layout = args.object.parent; |
| 40 | |
| 41 | // WidthHeight |
| 42 | child = layout.getViewById('widthHeight'); |
| 43 | if (child.width !== 30) { |
| 44 | super.setWidthHeight(child, 30, 50); |
| 45 | } else { |
| 46 | super.setWidthHeight(child, Number.NaN, Number.NaN); |
| 47 | } |
| 48 | |
| 49 | // MinWidthMinHeight |
| 50 | child = layout.getViewById('minWidthMinHeight'); |
| 51 | if (child.minWidth !== 105) { |
| 52 | super.setMinWidthHeight(child, 105, 55); |
| 53 | } else { |
| 54 | super.setMinWidthHeight(child, 0, 0); |
| 55 | } |
| 56 | // Margins |
| 57 | child = layout.getViewById('margins'); |
| 58 | if (child.marginLeft !== 5) { |
| 59 | super.setMargins(child, 5, 5, 5, 5); |
| 60 | } else { |
| 61 | super.setMargins(child, 0, 0, 0, 0); |
| 62 | } |
| 63 | |
| 64 | // Alignments |
| 65 | child = layout.getViewById('alignments'); |
| 66 | super.setAllPositioningProperties(child); |
| 67 | super.toggleVisibility(child); |
| 68 | |
| 69 | // Paddings |
| 70 | if (layout.paddingLeft !== 5) { |
| 71 | super.setPaddings(layout, 5, 5, 5, 5); |
| 72 | } else { |
| 73 | super.setPaddings(layout, 0, 0, 0, 0); |
| 74 | } |
| 75 | } |
| 76 | } |
nothing calls this directly
no test coverage detected