aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/PDFBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-04-14 12:25:31 -0400
committerbobzel <zzzman@gmail.com>2022-04-14 12:25:31 -0400
commita0b30f735850d4543cf9499ebd497b9548c22e47 (patch)
treebd601f507533376644e815ca049cde592fa1294e /src/client/views/nodes/PDFBox.tsx
parent74ef5f7a8c60dc68a1262077f7502d0535377b88 (diff)
tweaks. fixed groups to be resizable when iconified.
Diffstat (limited to 'src/client/views/nodes/PDFBox.tsx')
-rw-r--r--src/client/views/nodes/PDFBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx
index c73823a2b..54c4be24d 100644
--- a/src/client/views/nodes/PDFBox.tsx
+++ b/src/client/views/nodes/PDFBox.tsx
@@ -62,7 +62,7 @@ export class PDFBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProps
}
}
if (oldDiv instanceof HTMLCanvasElement) {
- const canvas = oldDiv as HTMLCanvasElement;
+ const canvas = oldDiv;
const img = document.createElement('img'); // create a Image Element
img.src = canvas.toDataURL(); //image source
img.style.width = canvas.style.width;