aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf/PDFViewer.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-10-01 14:03:00 -0400
committerbobzel <zzzman@gmail.com>2024-10-01 14:03:00 -0400
commit19f0184da33b5080f301baf78cf8e6f6d113d79a (patch)
tree285ab907d6f576ad56c2f98dc52119bdcf18acf7 /src/client/views/pdf/PDFViewer.tsx
parentbb40454262a2d915a334d7a26555d25d649d4317 (diff)
fixed some lint errors. fixed how drawings are added to pdfs. fixed testing for ink in propertiesView.
Diffstat (limited to 'src/client/views/pdf/PDFViewer.tsx')
-rw-r--r--src/client/views/pdf/PDFViewer.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx
index 20719442a..01242ba48 100644
--- a/src/client/views/pdf/PDFViewer.tsx
+++ b/src/client/views/pdf/PDFViewer.tsx
@@ -430,7 +430,7 @@ export class PDFViewer extends ObservableReactComponent<IViewerProps> {
addDrawingAnnotation = (drawing: Doc) => {
// drawing[DocData].x = this._props.pdfBox.ScreenToLocalBoxXf().TranslateX
// const scaleX = this._mainCont.current.offsetWidth / boundingRect.width;
- drawing.y = (drawing.y as number) + (this._props.Document.data_sidebar_panY as number);
+ drawing.y = NumCast(drawing.y) + NumCast(this._props.Document.layout_scrollTop);
this._props.addDocument?.(drawing);
};