diff options
author | bobzel <zzzman@gmail.com> | 2024-10-01 14:03:00 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-10-01 14:03:00 -0400 |
commit | 19f0184da33b5080f301baf78cf8e6f6d113d79a (patch) | |
tree | 285ab907d6f576ad56c2f98dc52119bdcf18acf7 /src/client/views/pdf/PDFViewer.tsx | |
parent | bb40454262a2d915a334d7a26555d25d649d4317 (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.tsx | 2 |
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); }; |