diff options
author | bobzel <zzzman@gmail.com> | 2021-03-04 10:06:31 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-03-04 10:06:31 -0500 |
commit | fee3821a95072ae31dbe7d79ef9e032040ef7738 (patch) | |
tree | 51574b8416d5f9b861b76c1b7d64d560ba0029ab /src/client/views/nodes/FunctionPlotBox.tsx | |
parent | 524bb41d2d5a74dc00d26e7abc079574e10a52a7 (diff) |
fixed dynamic updating of equations and functions when underlying data cahnges.
Diffstat (limited to 'src/client/views/nodes/FunctionPlotBox.tsx')
-rw-r--r-- | src/client/views/nodes/FunctionPlotBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/FunctionPlotBox.tsx b/src/client/views/nodes/FunctionPlotBox.tsx index f35677014..9094651f3 100644 --- a/src/client/views/nodes/FunctionPlotBox.tsx +++ b/src/client/views/nodes/FunctionPlotBox.tsx @@ -33,7 +33,7 @@ export class FunctionPlotBox extends ViewBoxBaseComponent<FieldViewProps, Equati } componentDidMount() { this.props.setContentView?.(this); - reaction(() => [DocListCast(this.dataDoc.data).lastElement()?.text, this.dataDoc.xRange, this.dataDoc.yRange], + reaction(() => [DocListCast(this.dataDoc.data).lastElement()?.text, this.layoutDoc.width, this.layoutDoc.height, this.dataDoc.xRange, this.dataDoc.yRange], () => this.createGraph()); } getAnchor = () => { |