aboutsummaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/views')
-rw-r--r--src/views/nodes/ImageBox.tsx3
-rw-r--r--src/views/nodes/PDFNode.tsx3
2 files changed, 3 insertions, 3 deletions
diff --git a/src/views/nodes/ImageBox.tsx b/src/views/nodes/ImageBox.tsx
index f53d94a6d..c145280a1 100644
--- a/src/views/nodes/ImageBox.tsx
+++ b/src/views/nodes/ImageBox.tsx
@@ -54,9 +54,8 @@ import { Annotation } from './Annotation';
*/
@observer
export class ImageBox extends React.Component<FieldViewProps> {
-
public static LayoutString() { return FieldView.LayoutString("ImageBox"); }
-
+
private _mainDiv = React.createRef<HTMLDivElement>()
private _pdf = React.createRef<HTMLCanvasElement>();
diff --git a/src/views/nodes/PDFNode.tsx b/src/views/nodes/PDFNode.tsx
index e626dc748..814a59500 100644
--- a/src/views/nodes/PDFNode.tsx
+++ b/src/views/nodes/PDFNode.tsx
@@ -54,7 +54,8 @@ import { Annotation } from './Annotation';
*/
@observer
export class PDFNode extends React.Component<FieldViewProps> {
-
+ public static LayoutString() { return FieldView.LayoutString("ImageBox"); }
+
private _mainDiv = React.createRef<HTMLDivElement>()
private _pdf = React.createRef<HTMLCanvasElement>();