From 35a49fa4974bdefd35675c4128d857f7580ebc0b Mon Sep 17 00:00:00 2001 From: Bob Zeleznik Date: Tue, 2 Jun 2020 19:09:42 -0400 Subject: fixed updating of parameters box --- src/client/views/nodes/ScriptingBox.tsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/client/views/nodes/ScriptingBox.tsx b/src/client/views/nodes/ScriptingBox.tsx index 18a9df9b4..f1105e614 100644 --- a/src/client/views/nodes/ScriptingBox.tsx +++ b/src/client/views/nodes/ScriptingBox.tsx @@ -1,4 +1,4 @@ -import { action, computed, observable, trace } from "mobx"; +import { action, computed, observable, trace, runInAction } from "mobx"; import { observer } from "mobx-react"; import * as React from "react"; import { Doc } from "../../../fields/Doc"; @@ -476,16 +476,17 @@ export class ScriptingBox extends ViewBoxAnnotatableComponent { + This._suggestionBoxX = left; + This._suggestionBoxY = top; + }); }); - this._suggestionBoxX = left; - this._suggestionBoxY = top; this._scriptSuggestedParams = this.getSuggestedParams(pos); -- cgit v1.2.3-70-g09d2