From 912ce2733f8fb7caab828bc6a1cb552639c45585 Mon Sep 17 00:00:00 2001
From: Mohammad Amoush <mohammad_amoush@brown.edu>
Date: Sat, 29 Feb 2020 13:24:25 -0500
Subject: scripbox

---
 src/client/views/ScriptBox.tsx | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'src/client/views/ScriptBox.tsx')

diff --git a/src/client/views/ScriptBox.tsx b/src/client/views/ScriptBox.tsx
index cc5d7640e..85b7a6dc4 100644
--- a/src/client/views/ScriptBox.tsx
+++ b/src/client/views/ScriptBox.tsx
@@ -12,6 +12,7 @@ import { CompileScript } from "../util/Scripting";
 import { ScriptField } from "../../new_fields/ScriptField";
 import { DragManager } from "../util/DragManager";
 import { EditableView } from "./EditableView";
+import { FieldView } from "./nodes/FieldView";
 
 export interface ScriptBoxProps {
     onSave: (text: string, onError: (error: string) => void) => void;
@@ -23,6 +24,8 @@ export interface ScriptBoxProps {
 
 @observer
 export class ScriptBox extends React.Component<ScriptBoxProps> {
+    public static LayoutString(fieldStr: string) { return FieldView.LayoutString(ScriptBox, fieldStr); }
+
     @observable
     private _scriptText: string;
 
-- 
cgit v1.2.3-70-g09d2

