diff options
| author | bobzel <zzzman@gmail.com> | 2022-04-25 20:20:48 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-04-25 20:20:48 -0400 |
| commit | cb59842fcb79af7ef72443e08c6a479c3f0af343 (patch) | |
| tree | bd36125e161cb374f1bf9d93dd597215db586cb8 /src/client/views/nodes/WebBox.tsx | |
| parent | 969ab00c44859b932884bb32fef1b1e8b11d5448 (diff) | |
changed freeformview's with engines to not allow children to be edited using setHeight prop since engine layouts are temporary and shouldn't edit the doc. fixed tags to work with pivot view. cleaned up pile views to be less hacky..
Diffstat (limited to 'src/client/views/nodes/WebBox.tsx')
| -rw-r--r-- | src/client/views/nodes/WebBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/WebBox.tsx b/src/client/views/nodes/WebBox.tsx index 0fd193977..eeb7b925b 100644 --- a/src/client/views/nodes/WebBox.tsx +++ b/src/client/views/nodes/WebBox.tsx @@ -164,7 +164,7 @@ export class WebBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProps autoHeight => { if (autoHeight) { this.layoutDoc._nativeHeight = NumCast(this.props.Document[this.props.fieldKey + "-nativeHeight"]); - this.props.setHeight(NumCast(this.props.Document[this.props.fieldKey + "-nativeHeight"]) * (this.props.scaling?.() || 1)); + this.props.setHeight?.(NumCast(this.props.Document[this.props.fieldKey + "-nativeHeight"]) * (this.props.scaling?.() || 1)); } }); |
